I have set up a enviroment of two machines in vagrant where I used the following CentOS image: http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130427.box
Lets call the two machines master and slave.
I would like to be able to talk to the slave from master over password-less ssh, so I followed the instructions in this blog post for setting up password-less ssh: http://www.thecloudavenue.com/2012/01/how-to-setup-password-less-ssh-to.html
The steps in the post would then be:
sudo apt-get install openssh-client sudo apt-get install openssh-server ssh-keygen -t rsa -P "" -f ~/.ssh/id_dsa ssh-copy-id -i $HOME/.ssh/id_dsa.pub vagrant@slave-hostname cat $HOME/.ssh/id_dsa.pub >> $HOME/.ssh/authorized_keys
The steps works fine and the slave gets the master key written in authorized_keys.
The problem is that the slave keeps asking for password when I try to enter it over SSH from the master.
Are there setting in Vagrant which I need to change in order to get password-less ssh to work?