ssh-keygen -t rsa (No passphrase or whatnot - just enter your way through)
ssh {user}@{remote-host} mkdir -p .ssh
cat .ssh/id_rsa.pub | ssh {user}@{remote-host} 'cat >> .ssh/authorized_keys'
ssh {user}@{remote-host} hostname (should work now)
No comments:
Post a Comment