summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/ssh.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-09-29 00:10:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-09-29 00:10:17 +0000
commit3e8d9a9fc2889da683c895f3899e2525790732f4 (patch)
tree7e535f0d66bbd2982dbe572c237d26f12e5ef575 /usr.bin/ssh/ssh.c
parent850f6b3786d2257a98d73cd44a65cc78a3fba011 (diff)
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.c7
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