Try the following:

ssh -p 2222 -i ~/.vagrant.d/insecure_private_key vagrant@localhost

The -p flag allows you to specify the port. The -i flag allows you to 
specify the path to the private key that is provided with your vagrant 
installation. vagrant@localhost is the general method of connecting to 
remote ssh nodes, with vagrant being the user and localhost being the host 
to which you intend to connect. Since vagrant does SSH through NAT on the 
localhost, we use localhost here. 

If this fails, then my guess is that something is wrong with your ssh keys. 
If it does not fail, but instead just takes a long time to authenticate, 
then my guess is that UseDNS in sshd_config on the guest is set to yes. If 
you set this to no, then you can sometimes reduce the time it takes to SSH 
into the guest system. 


On Monday, April 7, 2014 3:02:54 PM UTC-7, Brien Givens wrote:
>
> password... how do I use the private key?
>
> On Monday, April 7, 2014 2:39:33 PM UTC-7, [email protected] wrote:
>>
>> When you SSH in manually, are you using your private key or are you using 
>> your password? 
>>
>>
>> On Monday, April 7, 2014 2:21:49 PM UTC-7, Brien Givens wrote:
>>>
>>> I'm having similar problems with a similar setup
>>>
>>>
>>> http://stackoverflow.com/questions/22922891/vagrant-ssh-authentication-failure<http://www.google.com/url?q=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F22922891%2Fvagrant-ssh-authentication-failure&sa=D&sntz=1&usg=AFQjCNG49fdFq3pbL9LOfSXiRfYzzhnXqw>
>>>
>>> I followed demit's suggestions but the problem persists.
>>>
>>> @Alexey - I assume 'up' means you got yours running? What finally got it 
>>> working for you?
>>>
>>> @demit - any other tips?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to