virtualbox_WSL2 icon indicating copy to clipboard operation
virtualbox_WSL2 copied to clipboard

Cannot run "vagrant ssh", bad ssh key

Open ajoly-perso opened this issue 3 years ago • 0 comments

I'm on W11 with WSL2 and Debian 11 as guest. I've installed the plugin but when i make vagrant ssh on wsl i've a denied issue.

If i make ssh vagrant@localhost -p 2222 -i c:/Users/Amaury/Documents/Documents/Cours/M1/reseau/TP/tp3/VM1/.vagrant/machines/default/virtualbox/private_key on Powershell it's working well.

My vagrant ssh-config output :

Host default
  HostName 172.17.160.1
  User vagrant
  Port 2222
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile /mnt/c/Users/Amaury/<My Path>/VM1/.vagrant/machines/default/virtualbox/private_key
  IdentitiesOnly yes
  LogLevel FATAL

ajoly-perso avatar Oct 27 '21 12:10 ajoly-perso