spcd/cd-set-ssh
2024-03-23 00:59:39 +01:00

11 lines
174 B
Text
Executable file

mkdir --parents ~/.ssh
echo "${CD}" > ~/.ssh/id_ed25519
unset CD
chmod 400 ~/.ssh/id_ed25519
ssh \
-o StrictHostKeyChecking=accept-new \
'cd@de.tilde.link' \
-- \
hostname