Vagrant ssh forward_agent without entering a bad user password

I am currently using Vagrant and Chef to create a virtual machine and configure my PHP project. This includes starting the linker, which essentially performs git cloning of a number of private repositories.

After you configure ssh agent sending, as described in the docs and answers here: How to use ssh agent forwarding using the "ssh firewall"? I successfully got it working.

The problem I am facing is when I boot the virtual machine by providing the virtual machine or SSH to the virtual machine. Now they ask me for the default password for vagrants, see the examples below:

==> web: Waiting for machine to boot. This may take a few minutes...
web: SSH address: 192.168.77.185:22
web: SSH username: vagrant
web: SSH auth method: private key
Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text.
vagrant@192.168.77.185 password:

Example 2

vagrant git:(master)vagrant ssh
vagrant@192.168.77.185 password:

, , ( -). , , ?

+4
1

Vagrant . ~/.ssh/known_hosts ( OS X).

(, OS X Linux):

  • ssh

  • type ip addr ifconfig ( )

  • IP-, 127.0.0.1

  • - ssh-keygen -R {vm-ip-address} ( 127.0.0.1 [127.0.0.1]) 3

  • , ~/.ssh/known_hosts

  • vagrant ssh

// ~/.ssh/known_hosts, , ssh'd.

, .

: http://www.geekride.com/ssh-warning-remote-host-identification-has-changed/

+1

All Articles