-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Having issues with windows client #174
Comments
I think i tracked down the problem. It seems that the ssh binary isn't being called correctly in the cygwin console. When i went into .ssh/config and manually changed the proxycommand to /usr/bin/assh.exe, instead of c:\cygwin\usr\bin\assh.exe it worked fine. I then tried changing the ASSHBinaryPath:, but it seems it is being translated into windows format shown above. |
have the exactly same issue. |
I use a shell script for workaround #!/bin/bash -xe
assh.exe config build > ~/.ssh/config
sed -i 's/ ProxyCommand D:.*/ ProxyCommand assh connect --port=%p %h/g' ~/.ssh/config |
Yep, I have found on Windows that ASSHBinaryPath does not do the right thing. When it is on Windows it always translates the path to a Windows-based path. I had hoped it would allow you to actually specify an alternative path, precisely as you needed it. Which doesn't seem to be what it is there for. I've created my own config build script "wrapper" to handle the process for me if it helps:
Note the first Regex is to change either C: or D: as I use assh on different machines with Cygwin installed on different drives. |
assh doesn't seem to want to do anything for the windows client, i have a feeling this might be the ssh path that is messing this up. Any advice would be appreciated.
$ assh -V -D wrapper ssh testcase
time="2016-09-01T14:58:51+02:00" level=debug msg="Wrapper called with bin=C:\cygwin64\bin\ssh.exe target=testcase command=[] options=[], args=[ssh testcase]"
time="2016-09-01T14:58:51+02:00" level=debug msg="Loading config file 'C:\cygwin64\home\user/.ssh/assh.yml'"
time="2016-09-01T14:58:51+02:00" level=debug msg="Loaded config file 'C:\cygwin64\home\user/.ssh/assh.yml' (0 + 1 => 1 hosts)"
time="2016-09-01T14:58:51+02:00" level=debug msg="The configuration file is outdated, rebuilding it before calling ssh"
time="2016-09-01T14:58:51+02:00" level=debug msg="Writing SSH config file to "C:\cygwin64\home\user/.ssh/config""
And it returns to the shell here with no attempt at connecting to the server.
assh.yml:
$ cat .ssh/assh.yml
hosts:
testcase:
Hostname: test.test.org
User : testuser
The text was updated successfully, but these errors were encountered: