diff options
author | 1999-09-29 00:10:16 +0000 | |
---|---|---|
committer | 1999-09-29 00:10:16 +0000 | |
commit | 53c420e008654dd869335f21e80b6960662ebeb7 (patch) | |
tree | 668fddb19b7820c30291143de23514484a5716ae /usr.bin/ssh/ssh.c | |
parent | krb4 support; evanc@concer.to (diff) | |
download | wireguard-openbsd-53c420e008654dd869335f21e80b6960662ebeb7.tar.xz wireguard-openbsd-53c420e008654dd869335f21e80b6960662ebeb7.zip |
GatewayPorts and ssh -g; markus.friedl@informatik.uni-erlangen.de
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r-- | usr.bin/ssh/ssh.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index cc938505d00..018dda25347 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -18,7 +18,7 @@ Modified to work with SSL by Niels Provos <provos@citi.umich.edu> in Canada. */ #include "includes.h" -RCSID("$Id: ssh.c,v 1.3 1999/09/28 07:57:42 deraadt Exp $"); +RCSID("$Id: ssh.c,v 1.4 1999/09/29 00:10:16 deraadt Exp $"); #include "xmalloc.h" #include "ssh.h" @@ -110,6 +110,7 @@ usage() fprintf(stderr, "or none.\n"); fprintf(stderr, " -p port Connect to this port. Server must be on the same port.\n"); + fprintf(stderr, " -g Allow remote hosts to connect to forwarded ports.\n"); fprintf(stderr, " -L listen-port:host:port Forward local port to remote address\n"); fprintf(stderr, " -R listen-port:host:port Forward remote port to local address\n"); fprintf(stderr, " These cause %s to listen for connections on a port, and\n", av0); @@ -290,6 +291,10 @@ main(int ac, char **av) options.forward_x11 = 1; break; + case 'g': + options.gateway_ports = 1; + break; + case 'a': options.forward_agent = 0; #ifdef KERBEROS_TGT_PASSING |