I'm actually running 3.6.1p1, but Bugzilla doesn't have an entry for it yet. :) Pardon me if i'm an idiot, but the documentation says i can set ProxyCommand to none in ssh_config, and i even see special provisions for that keyword in the source code, but it doesn't work. When i set it, i get the errors: /bin/sh: line 1: exec: none: not found ssh_exchange_identification: Connection closed by remote host I checked this, and this results from passing options.proxy_command = "none" to ssh_connect. Looks like You might need the following patch: --- sshconnect.c.orig 2003-04-02 06:51:28.000000000 +0200 +++ sshconnect.c 2003-04-02 06:53:42.000000000 +0200 @@ -258,7 +258,8 @@ port = SSH_DEFAULT_PORT; } /* If a proxy command is given, connect using it. */ - if (proxy_command != NULL) + if (proxy_command != NULL && + strcmp(options.proxy_command, "none") == 0) return ssh_proxy_connect(host, port, proxy_command); /* No proxy command. */
$ ssh '-oProxyCommand none ' localhost /bin/sh: none: not found ssh_exchange_identification: Connection closed by remote host $ ssh '-oProxyCommand none' localhost Enter passphrase for key '/home/mouring/.ssh/id_rsa': none works as suggested, but it sensitive to extra whitespaces. (summary clarified)
I'll just add one more comment. As i said, i included the command in ssh_config (the global one), and it did not have any extra space. The patch i included works (that is to say, i haven't run into any problems), and there was no extra space in the string comparison i wrote. I think that means that the option is being imported from the configuration file properly, and that something besides extra white space is at fault. Could these be two different bugs? I'll let You guys sort it out now, since i obviously don't know much about the OpenSSH code. :)
Created attachment 268 [details] fix trailing newlines are not stripped....
Slightly different fix applied
*** Bug 572 has been marked as a duplicate of this bug. ***
*** Bug 596 has been marked as a duplicate of this bug. ***
Mass change of RESOLVED bugs to CLOSED