a@A:~> ssh-keygen -t rsa a@A:~> ssh b@B mkdir -p .ssh a@A:~> cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys' a@A:~> ssh b@B