fix ssh command

This commit is contained in:
Daniella / Tove 2024-10-19 03:29:06 +02:00
parent 7ac540f733
commit 9845f71967

View file

@ -32,7 +32,7 @@ pkgs.writeShellScriptBin "nixos-edit" ''
echo "-> copied to clipboard for later" echo "-> copied to clipboard for later"
echo adding it to syncfs echo adding it to syncfs
echo "-> you will need to input your password" echo "-> you will need to input your password"
ssh root@tudbut.de ssh -p 23 localhost bash -c "echo -e '# $(cat /etc/hostname)\n$(cat ~/.ssh/id_*.pub)\n' >> .ssh/authorized_keys" || exit 1 ssh root@tudbut.de "ssh -p 23 localhost 'echo -e \"# $(cat /etc/hostname)\n$(cat ~/.ssh/id_*.pub)\n\" >> .ssh/authorized_keys'" || exit 1
echo "> ssh setup done" echo "> ssh setup done"
echo "> setting up git" echo "> setting up git"
git config --global user.name "TudbuT" git config --global user.name "TudbuT"