I tried the same by generating the new ssh key, and then redirect to the 
authorized keys, still the same error.

ssh-keygen -t rsa -b 4096 -C "Vagrant"
cat vagrant.pub > ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys

-- Already its owned by vagrant, so skipped this step.

After vagrant reload, got the same error

vagrant reload
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Authentication failure. Retrying...
^C==> default: Waiting for cleanup before exiting...
Vagrant exited after cleanup due to external interrupt.


On Tuesday, 13 September 2016 23:44:40 UTC+5:30, STARFISH wrote:
>
> Hi Here,
>
> I created one vagrant file and from that I used to create the package box. 
>
> With the help of the package box, while I try to start the another vm, its 
> having the below warning, its not starting.. I Have no idea how to fix this.
>
> default: SSH username: vagrant
>     default: SSH auth method: private key
>     default: Warning: Remote connection disconnect. Retrying...
>     default: Warning: Authentication failure. Retrying...
>     default: Warning: Authentication failure. Retrying...
>     default: Warning: Authentication failure. Retrying...
>     default: Warning: Authentication failure. Retrying...
>     default: Warning: Authentication failure. Retrying...
>     default: Warning: Authentication failure. Retrying...
>
> Its started, but not connected and the vagrant ssh is not working
>
>
> Rameshs-MacBook-Pro:vag_cent7_2 Ramesh$ vagrant ssh
> Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
>
> Below is my vagrant file.
>
> Rameshs-MacBook-Pro:vag_cent7_2 Ramesh$ cat Vagrantfile
>
> Vagrant.configure(2) do |config|
>
>   config.vm.box = "/Users/Ramesh/lab_ansible/vag_cent7_1/package.box"
>   config.vm.hostname = "server2"
>
> end
>
> Help me on fixing this.
> ​
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
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 vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/c90c0328-7c23-4f04-9e53-205e89fe8ba5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to