Having problems with connecting to my VM and possibly initial insecure key ssh exchange for my first box.
Can ping the VM from host but not SSH.
VM (centos/7) is created and I can log in via hyperv console but not via ssh.
Anyone point me to recent documentation that is pertinent to setting up the ssh, or the hyper v network
(e.g. I've seen some web blogs suggest you must run vagrant as an administrator in powershell)
I've tried both as <user> and run as admin but no real difference. Both seem to create and start the VM and neither let me ssh in!
my <user> .ssh dir has
vagrant insecure public key (from github.. hashicorp/keys/vagrant.pub) copied as <user>\.ssh\authorized_keys
Also locally generated a public/private key using ssh-keygen
Files are <user>\.ssh\rsa_id and rsa_id.pub
Overwrote <user>\.vagrant.d\insecure_private_key with the contents of my rsa_id (private key)
Using openssh v7.5p1 (latest) or putty
Getting a connection refused with ssh or putty but don't know why and how to debug this.
Other info:
hyperV external switch shared with the host win 10 pro machine
ipconfig on host reports the vExternal switch IP as 192.168.1.X
Connecting into the VM via hyper V with password. ip a also shows eth0 with IP 192.168.1.X (same IP as virtual switch) - expected?
Tried changing the VM machine to use a legacy network adapter instead. No difference.
Initial trials were unsuccessful. However in the middle of trying lots of things, I did have this working earlier, but having destroyed the VM and recreated I have failed to repeat the success.