In this scenario we have two ESXi machines and want to SSH from machine A to B without passwrod.
1. on machine A /usr/lib/vmware/openssh/bin/ssh-keygen
2. These instructions generate two files in ~/.ssh: id_rsa and id_rsa.pub
3. cat id_rsa.pub and copy its content to
4. /etc/ssh/keys-root/authorized_keys as a new line (add key to file)
5. /etc/init.d/SSH restart
6. ssh to B (its ip address) and add first time key.
7. exit from ssh and try ssh again it should not ask a password anymore.