0

I am trying to setup password less login from my Mac OS X to to Ubuntu VM created by Virtual-box. I am using NAT->port forwarding option in VM and have host port as 3022. When I do

ssh -p 3022 ubuntu@127.0.0.1

from my local and I can able to login to ubuntu with password, and this works vice versa.

Now I have created public/private key file in my Mac and copied the pub key to VM (ubuntu/.ssh/authorized_keys)

So now when I do:

ssh -p 3022 ubuntu@127.0.0.1

and it's asking for the password again.

I verified the key from id_rsa.pub vs VM authorized_keys and key is same in both places

Can someone tell me if I am making any mistake in my steps?

kenorb
  • 26,615
Mowgli
  • 9

0 Answers0