Windows 10 Codename 20H1 & SSH failing
Docker machine hangs on creation with Waiting for SSH to be available...
Fresh installation of Windows 10 PRO 10.0.19041 Latest docker-machine v0.16.2 Hyper-V Manager feature enabled Nothing else installed
docker-machine -debug create -d hyperv --hyperv-memory 1024 --hyperv-disk-size 5000 --hyperv-cpu-count 1 --hyperv-virtual-switch "Default Switch" manager1
Debug Output:
Using SSH client type: external
&{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] -o IdentitiesOnly=yes -i C:\Users\shann.docker\machine\machines\manager1\id_rsa -p 22] C:\Windows\System32\OpenSSH\ssh.exe
Workaround 1:
Adding -native-ssh gets around this error.
docker-machine -debug -native-ssh create -d hyperv --hyperv-memory 1024 --hyperv-disk-size 5000 --hyperv-cpu-count 1 --hyperv-virtual-switch "Default Switch" manager1
Workaround 2: Uninstall OpenSSH from windows features. Apps & Features -> Optional Feature -> OpenSSH -> Uninstall
@Pugwasher Please try to use --native-ssh instead of -native-ssh. I hope docker-machine can add a static IP function for hyper-v driver.
@curtis18 I uninstalled the openssh version installed by windows which is incompatible with docker-machine. This automatically reverts to using the 'internal' ssh - which is the same as specifying native-ssh switch in the command line. Thanks anyways. Salute.
I have the other issue. Is there a solution?
Windows 10 WSL2 Hyper-V > hyperv-virtual-switch docker-machine --native-ssh create -d hyperv --hyperv-virtual-switch "MySwitch" master1 [issue] Permission denied PS C:\Users> docker-machine ssh master1 Warning: Identity file C:\Users\dev.docker\machine\machines\master1\id_rsa not accessible: No such file or directory.
PS C:\Users> docker-machine ssh master1 -v ...... debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: No more authentication methods to try. [email protected]: **Permission denied **(publickey,password,keyboard-interactive).
PS C:\Users> docker-machine ls --filter state=Running NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS master1 - hyperv Running tcp://182.178.137.19:2376 v19.03.12 slave1 - hyperv Running tcp://182.178.137.129:2376 v19.03.12 slave2 - hyperv Running tcp://182.178.137.188:2376 v19.03.12