Passwordless SSH
-
Generate an id_rsa.pub file
ssh-keygen -t rsa
-
Copy public key to remote server
cat ~/.ssh/id_rsa.pub | ssh user@machine "mkdir -p ~/.ssh; cat >> .ssh/authorized_keys"
Regenerate SSH Server Keys (debian)
rm /etc/ssh/ssh_host_* dpkg-reconfigure openssh-server