summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-01-04 16:57:17 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-01-04 16:57:17 +0000
commitf3ba3221422360487310ab6ee90d37cbca7cf6a8 (patch)
treebd37c75b212913f80928a34a8287d716d7c14589 /usr.bin
parent0c5c163fb16aa031858217f2bfd721cfb9b8fbaa (diff)
document -4, -6, and 'ssh -L 2022/::1/22'
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/scp.112
-rw-r--r--usr.bin/ssh/scp.c6
-rw-r--r--usr.bin/ssh/ssh.122
-rw-r--r--usr.bin/ssh/sshd.812
4 files changed, 41 insertions, 11 deletions
diff --git a/usr.bin/ssh/scp.1 b/usr.bin/ssh/scp.1
index 4b4da96ea8b..d4c374e5f12 100644
--- a/usr.bin/ssh/scp.1
+++ b/usr.bin/ssh/scp.1
@@ -9,7 +9,7 @@
.\"
.\" Created: Sun May 7 00:14:37 1995 ylo
.\"
-.\" $Id: scp.1,v 1.4 1999/10/16 20:55:42 markus Exp $
+.\" $Id: scp.1,v 1.5 2000/01/04 16:57:16 markus Exp $
.\"
.Dd September 25, 1999
.Dt SCP 1
@@ -19,7 +19,7 @@
.Nd secure copy (remote file copy program)
.Sh SYNOPSIS
.Nm scp
-.Op Fl pqrvC
+.Op Fl pqrvC46
.Op Fl P Ar port
.Op Fl c Ar cipher
.Op Fl i Ar identity_file
@@ -93,6 +93,14 @@ because
.Fl p
is already reserved for preserving the times and modes of the file in
.Xr rcp 1 .
+.It Fl 4
+Forces
+.Nm
+to use IPv4 addresses only.
+.It Fl 6
+Forces
+.Nm
+to use IPv6 addresses only.
.Sh AUTHORS
Timo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@cs.hut.fi>
.Sh HISTORY
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c
index e898f23ff49..efb838027cb 100644
--- a/usr.bin/ssh/scp.c
+++ b/usr.bin/ssh/scp.c
@@ -45,7 +45,7 @@
*/
#include "includes.h"
-RCSID("$Id: scp.c,v 1.23 2000/01/04 00:07:59 markus Exp $");
+RCSID("$Id: scp.c,v 1.24 2000/01/04 16:57:16 markus Exp $");
#include "ssh.h"
#include "xmalloc.h"
@@ -945,7 +945,7 @@ void
usage()
{
(void) fprintf(stderr,
- "usage: scp [-pqrvC] [-P port] [-c cipher] [-i identity] f1 f2; or:\n scp [options] f1 ... fn directory\n");
+ "usage: scp [-pqrvC46] [-P port] [-c cipher] [-i identity] f1 f2; or:\n scp [options] f1 ... fn directory\n");
exit(1);
}
@@ -1006,7 +1006,7 @@ run_err(const char *fmt,...)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: scp.c,v 1.23 2000/01/04 00:07:59 markus Exp $
+ * $Id: scp.c,v 1.24 2000/01/04 16:57:16 markus Exp $
*/
char *
diff --git a/usr.bin/ssh/ssh.1 b/usr.bin/ssh/ssh.1
index 29f51ae49dd..0f0908566ce 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.31 1999/12/25 13:35:55 markus Exp $
+.\" $Id: ssh.1,v 1.32 2000/01/04 16:57:16 markus Exp $
.\"
.Dd September 25, 1999
.Dt SSH 1
@@ -24,7 +24,7 @@
.Op Ar command
.Pp
.Nm ssh
-.Op Fl afgknqtvxCPX
+.Op Fl afgknqtvxCPX46
.Op Fl c Ar blowfish | 3des
.Op Fl e Ar escape_char
.Op Fl i Ar identity_file
@@ -396,9 +396,13 @@ by allocating a socket to listen to
on the local side, and whenever a connection is made to this port, the
connection is forwarded over the secure channel, and a connection is
made to
-.Ar host:hostport
+.Ar host
+port
+.Ar hostport
from the remote machine. Port forwardings can also be specified in the
configuration file. Only root can forward privileged ports.
+IPv6 addresses can be specified with an alternative syntax:
+.Ar port/host/hostport
.It Fl R Ar port:host:hostport
Specifies that the given port on the remote (server) host is to be
forwarded to the given host and port on the local side. This works
@@ -407,10 +411,20 @@ by allocating a socket to listen to
on the remote side, and whenever a connection is made to this port, the
connection is forwarded over the secure channel, and a connection is
made to
-.Ar host:hostport
+.Ar host
+port
+.Ar hostport
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 4
+Forces
+.Nm
+to use IPv4 addresses only.
+.It Fl 6
+Forces
+.Nm
+to use IPv6 addresses only.
.El
.Sh CONFIGURATION FILES
.Nm
diff --git a/usr.bin/ssh/sshd.8 b/usr.bin/ssh/sshd.8
index a64d5d06a77..2942d4ef4b2 100644
--- a/usr.bin/ssh/sshd.8
+++ b/usr.bin/ssh/sshd.8
@@ -9,7 +9,7 @@
.\"
.\" Created: Sat Apr 22 21:55:14 1995 ylo
.\"
-.\" $Id: sshd.8,v 1.28 2000/01/04 00:08:00 markus Exp $
+.\" $Id: sshd.8,v 1.29 2000/01/04 16:57:16 markus Exp $
.\"
.Dd September 25, 1999
.Dt SSHD 8
@@ -19,7 +19,7 @@
.Nd secure shell daemon
.Sh SYNOPSIS
.Nm sshd
-.Op Fl diqQ
+.Op Fl diqQ46
.Op Fl b Ar bits
.Op Fl f Ar config_file
.Op Fl g Ar login_grace_time
@@ -173,6 +173,14 @@ When this options is specified
assumes the client has sent the given version string
and skips the
Protocol Version Identification Exchange.
+.It Fl 4
+Forces
+.Nm
+to use IPv4 addresses only.
+.It Fl 6
+Forces
+.Nm
+to use IPv6 addresses only.
.El
.Sh CONFIGURATION FILE
.Nm