-
Notifications
You must be signed in to change notification settings - Fork 758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-machine doesn't work with this version of OpenSSH #666
Comments
I looked into this. Apparently, docker is launching ssh with the following commandline: ssh.exe -F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none docker@10.123.171.161 -o IdentitiesOnly=yes -i C:\Users\manojamp.docker\machine\machines\localhost\id_rsa -p 22 "exit 0" There are certain Unix specific elements in the command line (/dev/null) that are not mapped in the Windows port yet. Targeting a fix for April-End. |
docker ssh issue PowerShell/Win32-OpenSSH#666 a) fdopen changes to accept the /dev/null device b) fix the select (using same fdset as readfdset, exceptfdset) issue with the unix opensssh code. changed keyscan pester test to refer to localhost (127.0.0.1) instead of GitHub.com PowerShell/Win32-OpenSSH#731 Fix the ASSERT_HANDLE issue.. ASSERT_HANDLE should fail if handle is either NULL or INVALID_HANDLE. Added new testcases for the null device.
Please check the may end release. |
@bagajjal when will the May-end release be available? The current release is from 14 days ago... |
Please confirm if "May-end release" is the same as "Win32-OpenSS v0.0.14.0". This is the latest version I can find, yet it was released 14 days ago. |
May-end release will be available today.. it will be v0.0.15.0 |
This now works as expected with the release from |
Release 0.0.15.0 fails for me in the same place that is, when the docker-machine it trying to contact a newly created host. Below is how a single such attempt looks in the log
|
|
Balu, I executed the first command, and I am running 0.0.15.0
Here are the steps I followed
I am enclosing 3 files
sshd.log.txt Wojtek |
After I sent the message above I also noticed that the docker-machine complains that it cannot verify docker version of the host because the cert is signed by unknown authority. This may be relevant.
|
Looks like the problem is with the keys (C:\Users\wojtek\.docker\machine\machines\testHost\id_rsa)... With the recent changes (0.0.15.0 release), ssh will check the file permissions of the key files.. please go through https://github.com/PowerShell/Win32-OpenSSH/wiki/OpenSSH-utility-scripts-to-fix-file-permissions and fix the file permission issues.. debug1: Next authentication method: publickey |
I had this issue and I tried all the suggestions here and on almost everywhere else but nothing worked. However, I ran the VM command on Git Bash and it successfully created a VM for me. I'm guessing it worked because as @manojampalam pointed out, the command runs with some Unix based elements which prevent Windows terminals from executing it. |
@davehowson - To debug further please share ssh client logs (ssh -vvv user@ip <all_args_for_ur_scenario>) and sshd logs (DEBUG3 enabled). This original issue reported is closed so we need to debug why you are still seeing this issue. |
I'm just trying to use docker-toolbox in hyper-v mode and found this discussion. I created an External switch manually and called
I started |
There's the |
"OpenSSH for Windows" version
0.0.10.0
OS details
Windows 10 Pro
What is failing
A detailed description of the issue is in the docker/machine repo @ docker/machine#4053.
The summary is that when OpenSSH is installed on Windows 10 the docekr-machine tries to use it to communicate with the Hyper-V VMs it creates and manages, and the Win32 OpenSSH implementation fails.
Repro steps are
The last command hangs when the docker-machine tries to open an SSH connection to the newly created VM.
Cheers, Wojtek
The text was updated successfully, but these errors were encountered: