Vagrant 2.0.0
VirtualBox 5.1.26 
host is windows 10 pro.

So this is what I have done

iso file for mint 18.2
create new VM in virtualbox using iso. Install mint with vagrant as user.
Run VM in virtualbox, log on as vagrant with password of vagrant. Create 
.ssh folder in vagrant home, copy insecure_private_key to authorized_keys.

vagrant package to create box file, vagrant add to add box

vagrant init -m box_name

vagrant up gives this 
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'mint182_vagrant'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: 
mint182_base_default_1505291152265_43039
==> 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: Connection aborted. Retrying...
    default: Warning: Connection reset. Retrying...
    default: Warning: Connection aborted. Retrying...
    default: Warning: Connection reset. Retrying...
    default: Warning: Connection aborted. Retrying...
    default: Warning: Connection reset. Retrying...
    default: Warning: Connection aborted. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Connection aborted. Retrying...

The last two lines then repeat until control-C

Looking in virtualbox, the VM is running. So I tried vagrant ssh
ssh_exchange_identification: read: Software caused connection abort

PS> vagrant ssh-config
Host default
  HostName 127.0.0.1
  User vagrant
  Port 2222
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile D:/Vagrant/insecure_private_key
  IdentitiesOnly yes
  LogLevel FATAL


Normally when I connect to a VM via ssh, I use putty. And that is the only 
ssh I have on the PC. No ssh on command line. But I can open the Ubuntu on 
windows app which gives

/mnt/d/Vagrant_examples/mint182_base$ ssh -p2222 [email protected]
ssh_exchange_identification: Connection closed by remote host

I believe this is supposed to ask for a password.

So I am obviously doing something wrong. Does anyone have any ideas?

Regards,
John


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/949d2b40-f248-4f29-a18c-bc70eeed9ff3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to