That worked instantly. This is the output: Guests-MacBook-Pro:vagrant-base-dev briengivens$ ssh -p 2222 -i ~/.vagrant.d/insecure_private_key vagrant@localhost The authenticity of host '[localhost]:2222 ([127.0.0.1]:2222)' can't be established. RSA key fingerprint is (removed). Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '[localhost]:2222' (RSA) to the list of known hosts. Password: Last login: Mon Apr 7 11:34:45 2014 Dev-Box:~ admin$
On Monday, April 7, 2014 3:23:58 PM UTC-7, [email protected] wrote: > > 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.
