Ho un nuovo utente nella mia scatola vagabonda (trusty64) e sto provando a ssh in esso. Invece di accedere vagrant utente dopo vagrant up, Voglio accedere al mio nome utente.
Quello che ho fatto finora
- Creato un utente nel mio computer ospite.
- Creata la chiave ssh nel mio host usando
ssh-keygen - Copia la chiave ssh sul guest usando
ssh-copy-id -p 2222 -i shash@127.0.0.1
e la parte del Vagrantfile ha questo aspetto
config.vm.box = "ubuntu/trusty64"
config.ssh.username = "shash"
config.ssh.forward_agent = true
config.ssh.private_key_path = "~/.ssh/authorized_keys"
posso usare ssh -p '2222' 'shash@127.0.0.1' per accedere direttamente ma quando lo do vagrant up Continuo a ricevere il seguente errore
default: Warning: Connection timeout. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
Qualsiasi aiuto nell'ordinare questo è davvero apprezzato. Grazie!