diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2000-04-14 10:11:13 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2000-04-14 10:11:13 +0000 |
commit | d03442ba263d0a1dcc4c61728720cfbfe1d3c0dd (patch) | |
tree | cea2185aafab4c497bc2ecb15a434f0b47b94332 /usr.bin/ssh | |
parent | 33678fc8b299d55717f34c94bad03f629f7c89a2 (diff) |
ssh -2
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/ssh.1 | 8 | ||||
-rw-r--r-- | usr.bin/ssh/ssh.c | 7 |
2 files changed, 12 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh.1 b/usr.bin/ssh/ssh.1 index 55a38666b1e..b91c51c852f 100644 --- a/usr.bin/ssh/ssh.1 +++ b/usr.bin/ssh/ssh.1 @@ -9,7 +9,7 @@ .\" .\" Created: Sat Apr 22 21:55:14 1995 ylo .\" -.\" $Id: ssh.1,v 1.45 2000/04/12 23:00:28 markus Exp $ +.\" $Id: ssh.1,v 1.46 2000/04/14 10:11:12 markus Exp $ .\" .Dd September 25, 1999 .Dt SSH 1 @@ -24,7 +24,7 @@ .Op Ar command .Pp .Nm ssh -.Op Fl afgknqtvxCPX46 +.Op Fl afgknqtvxCPX246 .Op Fl c Ar blowfish | 3des .Op Fl e Ar escape_char .Op Fl i Ar identity_file @@ -455,6 +455,10 @@ from the local machine. Port forwardings can also be specified in the configuration file. Privileged ports can be forwarded only when logging in as root on the remote machine. +.It Fl 2 +Forces +.Nm +to use protocol version 2 only. .It Fl 4 Forces .Nm diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index ecf3e824546..b598fa77483 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -11,7 +11,7 @@ */ #include "includes.h" -RCSID("$Id: ssh.c,v 1.46 2000/04/12 07:45:44 markus Exp $"); +RCSID("$Id: ssh.c,v 1.47 2000/04/14 10:11:12 markus Exp $"); #include "xmalloc.h" #include "ssh.h" @@ -128,6 +128,7 @@ usage() fprintf(stderr, " -g Allow remote hosts to connect to forwarded ports.\n"); fprintf(stderr, " -4 Use IPv4 only.\n"); fprintf(stderr, " -6 Use IPv6 only.\n"); + fprintf(stderr, " -2 Force protocol version 2.\n"); fprintf(stderr, " -o 'option' Process the option as if it was read from a configuration file.\n"); exit(1); } @@ -266,6 +267,10 @@ main(int ac, char **av) optarg = NULL; } switch (opt) { + case '2': + options.protocol = SSH_PROTO_2; + break; + case '4': IPv4or6 = AF_INET; break; |