Here is the problem. After vagrant up
in an Ubuntu 12.04 box, I create a custom user:
sudo useradd -m USER_NAME
And I add it to the same groups than the vagrant
user. After that, I try to login with SSH but I can't find the way. I generate a SSH key pair with ssh-keygen
, and set the following option in the Vagrantfile
:
config.ssh.username = "USER_NAME"
So doing vagrant ssh
allows me to enter the user password and log in as that user, but not directly with a SSH key pair. I think that I have to set up the config variable:
config.ssh.private_key_path = ""
But I don't know how... What path to set and where to place the public and private keys. It is probably a more conceptual problem with SSH than with Vagrant, but I've been with this for hours, any hint? Thanks