Re:Show HN: S – a tool for ssh like z for cd
by bdarnell on Sunday March 01, 2015 @09:58PM
(#9130100)
There is actually a reason you can't have ~/.ssh/config symlinked the same way: ssh refuses to read a symlink for this file (for security purposes it is strict about the file type and permissions). My workaround is to copy the file instead of symlinking in my dotfile-setup script.
[ Parent
| on HN ]
I version control the entire directory (ignoring the known_hosts file) somewhere like ~/config/ssh and symlink it to ~/.ssh. It contains a Makefile with a target that runs this command:
ln -s ${PWD} ~/.ssh
Just make sure the directory is chmod 700 and the important files in it are chmod 600.
Re:Show HN: S – a tool for ssh like z for cd
by jethro_tell on Monday March 02, 2015 @12:28AM
(#9130441)
Also ignore any private keys. For security, but also each host should have a different key so you can burn one without burning them all.