mkdir /home/vagrant/.ssh cd /home/vagrant/.ssh wget https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub mv vagrant.pub authorized_keys chmod -R 600 /home/vagrant/.ssh
chmod 700 /home/vagrant/.sshchown -R vagrant:vagrant /home/vagrant/.ssh
But looks you are missing also sudo, vagrant should be able to do sudo to root without paswords.
here is what I use:
useradd vagrant cp /etc/sudoers /etc/sudoers.orig sed -i -e 's/Defaults\\s*requiretty$/#Defaults\trequiretty/' /etc/sudoers sed -i -e '/# %wheel\tALL=(ALL)\tNOPASSWD: ALL/a %vagrant\tALL=(ALL)\tNOPASSWD: ALL' /etc/sudoers mkdir ~vagrant/.ssh chmod 700 ~vagrant/.ssh echo 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp 4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key' > ~vagrant/.ssh/authorized_keys chmod 600 ~vagrant/.ssh/authorized_keys chown -R vagrant: ~vagrant/.ssh cp /etc/ssh/sshd_config /etc/ssh/sshd_config.ori sed -i -e '/#UseDNS yes/a UseDNS no' /etc/ssh/sshd_config for nic in /etc/sysconfig/network-scripts/ifcfg-eth*; do sed -i /HWADDR/d $nic; done rm /etc/udev/rules.d/70-persistent-net.rules
--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
VAGRANT_LOG=INFO vagrant ssh" is: