vagrant ssh always asks for password, even when the correct public key is in authorized_keys

Has anyone else experienced this. I have three or so local boxes, all of them has my host machines key in `authorized_hosts, but only one starts a session without asking for a password. I don't know much about the ssh config, what could cause something like this? Each box is configured identically from an almost identical Vagrantfile. The only difference is a change of the IP.

2 thoughts on “vagrant ssh always asks for password, even when the correct public key is in authorized_keys”

  1. if you are just running the ssh command line to access them, pass the ‘-v’ flag to see whats happening with the authentication

    ssh -vv some_host

    ssh is very sensitive to the ownership and permissions to the .ssh directory and its contents, check these very carefully

    Reply

Leave a Comment