This is the mail archive of the
mailing list for the Cygwin project.
ssh ProxyCommand not finding anything to execute
- From: SQueeZe <kevin at kevinandkiran dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 17 Sep 2007 11:38:03 -0700 (PDT)
- Subject: ssh ProxyCommand not finding anything to execute
I am trying to connect to my home computer from work and I have to use the
work HTTP proxy on port 443 in order to do so. I have done this using PuTTY
just fine so I know there is nothing wrong with my setup. I have downloaded
the windows binary of Connect and placed it in the same folder as the ssh
binary (c:\cwrsync\bin). If I try to run the connect command by itself in
debug mode I can connect to the proxy and thus my home PC just fine:
bash-3.00$ connect -d -H proxy:8085 myhomepc 443
DEBUG: No direct address are specified.
DEBUG: relay_method = HTTP (3)
DEBUG: Program is $Revision: 100 $
DEBUG: checking myhomepc is for direct?
DEBUG: myhomepc for not direct.
DEBUG: resolving host by name: proxy
DEBUG: resolved: proxy (192.168.100.10)
DEBUG: connecting to 192.168.100.2:8085
DEBUG: >>> "CONNECT myhomepc:443 HTTP/1.0\r\n"
DEBUG: >>> "\r\n"
DEBUG: <<< "HTTP/1.0 200 Connection established\r\n"
DEBUG: connected, start user session.
DEBUG: <<< "\r\n"
DEBUG: start relaying.
DEBUG: recv 31 bytes
DEBUG: sent 2 bytes
DEBUG: recv 19 bytes
DEBUG: connection closed by peer
DEBUG: relaying done.
DEBUG: that's all, bye.
I have installed cwRsync which has the OpenSSH client version 4.5. I should
be able to type in the following:
ssh -v -o ProxyCommand="connect -H -d proxy:8085 %h 443" user@myhomepc
However I get the following error:
OpenSSH_4.5p1, OpenSSL 0.9.8d 28 Sep 2006
debug1: Executing proxy command: exec connect.exe -H proxy:8085 myhomepc 443
debug1: permanently_drop_suid: 400
/bin/sh: No such file or directory
debug1: identity file /cygdrive/c/Documents and
Settings/myuser/.ssh/identity type -1
debug1: identity file /cygdrive/c/Documents and Settings/myuser/.ssh/id_rsa
debug1: identity file /cygdrive/c/Documents and Settings/myuser/.ssh/id_dsa
ssh_exchange_identification: Connection closed by remote host
The problem is that it doesn't seem to be finding the connect binary. If I
remove all the "connect.exe...." stuff and just leave it as "" or put random
stuff in there, I get exactly the same error. C:\cwRsync\bin is in my PATH
variable so I can type it from anywhere.
I have tried specifying the location with:
and I have tried copying the binary to various places on my hard drive to no
My understanding is that I should get some output from Connect once it finds
it as I have specified the -d flag.
What am I doing wrong?
View this message in context: http://www.nabble.com/ssh-ProxyCommand-not-finding-anything-to-execute-tf4469005.html#a12742301
Sent from the Cygwin Users mailing list archive at Nabble.com.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html