summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2003-02-06 09:27:29 +0000
committermarkus <markus@openbsd.org>2003-02-06 09:27:29 +0000
commited5115a27accf75f0c2d33902ecebaa8f6dda51f (patch)
tree7922e3e5f96cf248a1a104c8dcfd078dbc6b5573
parentmissing call to setproctitle() after authentication; ok provos@ (diff)
downloadwireguard-openbsd-ed5115a27accf75f0c2d33902ecebaa8f6dda51f.tar.xz
wireguard-openbsd-ed5115a27accf75f0c2d33902ecebaa8f6dda51f.zip
support 'ProxyCommand none'; bugzilla #433; binder@arago.de; ok djm@
-rw-r--r--usr.bin/ssh/ssh.c6
-rw-r--r--usr.bin/ssh/ssh_config.55
2 files changed, 9 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c
index a36a6eb8028..b4a9ab21f04 100644
--- a/usr.bin/ssh/ssh.c
+++ b/usr.bin/ssh/ssh.c
@@ -40,7 +40,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh.c,v 1.189 2002/12/09 16:50:30 millert Exp $");
+RCSID("$OpenBSD: ssh.c,v 1.190 2003/02/06 09:27:29 markus Exp $");
#include <openssl/evp.h>
#include <openssl/err.h>
@@ -586,6 +586,10 @@ again:
if (options.hostname != NULL)
host = options.hostname;
+ if (options.proxy_command != NULL &&
+ strcmp(options.proxy_command, "none") == 0)
+ options.proxy_command = NULL;
+
/* Disable rhosts authentication if not running as root. */
if (original_effective_uid != 0 || !options.use_privileged_port) {
debug("Rhosts Authentication disabled, "
diff --git a/usr.bin/ssh/ssh_config.5 b/usr.bin/ssh/ssh_config.5
index ac05a0ceae7..710c068c5bd 100644
--- a/usr.bin/ssh/ssh_config.5
+++ b/usr.bin/ssh/ssh_config.5
@@ -34,7 +34,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $OpenBSD: ssh_config.5,v 1.5 2002/08/29 22:54:10 stevesk Exp $
+.\" $OpenBSD: ssh_config.5,v 1.6 2003/02/06 09:27:29 markus Exp $
.Dd September 25, 1999
.Dt SSH_CONFIG 5
.Os
@@ -474,6 +474,9 @@ somewhere.
Host key management will be done using the
HostName of the host being connected (defaulting to the name typed by
the user).
+Setting the command to
+.Dq none
+disables this option entirely.
Note that
.Cm CheckHostIP
is not available for connects with a proxy command.