summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-07-10 20:16:27 +1000
committerDamien Miller <djm@mindrot.org>2006-07-10 20:16:27 +1000
commit991dba43e17f7e4c8706158ecee32f2bfd18cac4 (patch)
treea0052663ab0a06022631b37c3215de153429febd
parent43020951adc182bb98ac2b3c539fbca86622166d (diff)
- stevesk@cvs.openbsd.org 2006/07/02 17:12:58
[ssh.1 ssh.c ssh_config.5 sshd_config.5] more details and clarity for tun(4) device forwarding; ok and help jmc@
-rw-r--r--ChangeLog6
-rw-r--r--ssh.138
-rw-r--r--ssh.c4
-rw-r--r--ssh_config.538
-rw-r--r--sshd_config.515
5 files changed, 72 insertions, 29 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a3ee6670..f31d44bcd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,10 @@
8 [clientloop.c] 8 [clientloop.c]
9 mention optional bind_address in runtime port forwarding setup 9 mention optional bind_address in runtime port forwarding setup
10 command-line help. patch from santhi.amirta AT gmail.com 10 command-line help. patch from santhi.amirta AT gmail.com
11 - stevesk@cvs.openbsd.org 2006/07/02 17:12:58
12 [ssh.1 ssh.c ssh_config.5 sshd_config.5]
13 more details and clarity for tun(4) device forwarding; ok and help
14 jmc@
11 15
1220060706 1620060706
13 - (dtucker) [configure.ac] Try AIX blibpath test in different order when 17 - (dtucker) [configure.ac] Try AIX blibpath test in different order when
@@ -4741,4 +4745,4 @@
4741 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 4745 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
4742 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 4746 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
4743 4747
4744$Id: ChangeLog,v 1.4361 2006/07/10 10:16:12 djm Exp $ 4748$Id: ChangeLog,v 1.4362 2006/07/10 10:16:27 djm Exp $
diff --git a/ssh.1 b/ssh.1
index 874a5d2fe..4067a9362 100644
--- a/ssh.1
+++ b/ssh.1
@@ -34,7 +34,7 @@
34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36.\" 36.\"
37.\" $OpenBSD: ssh.1,v 1.260 2006/05/29 16:13:23 jmc Exp $ 37.\" $OpenBSD: ssh.1,v 1.261 2006/07/02 17:12:58 stevesk Exp $
38.Dd September 25, 1999 38.Dd September 25, 1999
39.Dt SSH 1 39.Dt SSH 1
40.Os 40.Os
@@ -78,7 +78,8 @@
78.Oc 78.Oc
79.Op Fl S Ar ctl_path 79.Op Fl S Ar ctl_path
80.Bk -words 80.Bk -words
81.Op Fl w Ar tunnel : Ns Ar tunnel 81.Oo Fl w Ar local_tun Ns
82.Op : Ns Ar remote_tun Oc
82.Oo Ar user Ns @ Oc Ns Ar hostname 83.Oo Ar user Ns @ Oc Ns Ar hostname
83.Op Ar command 84.Op Ar command
84.Ek 85.Ek
@@ -588,24 +589,35 @@ Multiple
588.Fl v 589.Fl v
589options increase the verbosity. 590options increase the verbosity.
590The maximum is 3. 591The maximum is 3.
591.It Fl w Ar tunnel : Ns Ar tunnel 592.It Fl w Xo
592Requests a 593.Ar local_tun Ns Op : Ns Ar remote_tun
594.Xc
595Requests
596tunnel
597device forwarding with the specified
593.Xr tun 4 598.Xr tun 4
594device on the client 599devices between the client
595(first 600.Pq Ar local_tun
596.Ar tunnel 601and the server
597arg) 602.Pq Ar remote_tun .
598and server 603.Pp
599(second
600.Ar tunnel
601arg).
602The devices may be specified by numerical ID or the keyword 604The devices may be specified by numerical ID or the keyword
603.Dq any , 605.Dq any ,
604which uses the next available tunnel device. 606which uses the next available tunnel device.
607If
608.Ar remote_tun
609is not specified, it defaults to
610.Dq any .
605See also the 611See also the
606.Cm Tunnel 612.Cm Tunnel
607directive in 613and
614.Cm TunnelDevice
615directives in
608.Xr ssh_config 5 . 616.Xr ssh_config 5 .
617If the
618.Cm Tunnel
619directive is unset, it is set to the default tunnel mode, which is
620.Dq point-to-point .
609.It Fl X 621.It Fl X
610Enables X11 forwarding. 622Enables X11 forwarding.
611This can also be specified on a per-host basis in a configuration file. 623This can also be specified on a per-host basis in a configuration file.
diff --git a/ssh.c b/ssh.c
index 01303dc97..9d50e42fd 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.276 2006/04/25 08:02:27 dtucker Exp $ */ 1/* $OpenBSD: ssh.c,v 1.277 2006/07/02 17:12:58 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -176,7 +176,7 @@ usage(void)
176" [-i identity_file] [-L [bind_address:]port:host:hostport]\n" 176" [-i identity_file] [-L [bind_address:]port:host:hostport]\n"
177" [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]\n" 177" [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]\n"
178" [-R [bind_address:]port:host:hostport] [-S ctl_path]\n" 178" [-R [bind_address:]port:host:hostport] [-S ctl_path]\n"
179" [-w tunnel:tunnel] [user@]hostname [command]\n" 179" [-w local_tun[:remote_tun]] [user@]hostname [command]\n"
180 ); 180 );
181 exit(255); 181 exit(255);
182} 182}
diff --git a/ssh_config.5 b/ssh_config.5
index 0d40fd63e..68ec311b2 100644
--- a/ssh_config.5
+++ b/ssh_config.5
@@ -34,7 +34,7 @@
34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36.\" 36.\"
37.\" $OpenBSD: ssh_config.5,v 1.94 2006/05/29 16:10:03 jmc Exp $ 37.\" $OpenBSD: ssh_config.5,v 1.95 2006/07/02 17:12:58 stevesk Exp $
38.Dd September 25, 1999 38.Dd September 25, 1999
39.Dt SSH_CONFIG 5 39.Dt SSH_CONFIG 5
40.Os 40.Os
@@ -931,24 +931,44 @@ This is important in scripts, and many users want it too.
931To disable TCP keepalive messages, the value should be set to 931To disable TCP keepalive messages, the value should be set to
932.Dq no . 932.Dq no .
933.It Cm Tunnel 933.It Cm Tunnel
934Request starting 934Request
935.Xr tun 4 935.Xr tun 4
936device forwarding between the client and the server. 936device forwarding between the client and the server.
937This option also allows requesting layer 2 (ethernet)
938instead of layer 3 (point-to-point) tunneling from the server.
939The argument must be 937The argument must be
940.Dq yes , 938.Dq yes ,
941.Dq point-to-point , 939.Dq point-to-point
942.Dq ethernet , 940(layer 3),
941.Dq ethernet
942(layer 2),
943or 943or
944.Dq no . 944.Dq no .
945Specifying
946.Dq yes
947requests the default tunnel mode, which is
948.Dq point-to-point .
945The default is 949The default is
946.Dq no . 950.Dq no .
947.It Cm TunnelDevice 951.It Cm TunnelDevice
948Force a specified 952Specifies the
949.Xr tun 4 953.Xr tun 4
950device on the client. 954devices to open on the client
951Without this option, the next available device will be used. 955.Pq Ar local_tun
956and the server
957.Pq Ar remote_tun .
958.Pp
959The argument must be
960.Sm off
961.Ar local_tun Op : Ar remote_tun .
962.Sm on
963The devices may be specified by numerical ID or the keyword
964.Dq any ,
965which uses the next available tunnel device.
966If
967.Ar remote_tun
968is not specified, it defaults to
969.Dq any .
970The default is
971.Dq any:any .
952.It Cm UsePrivilegedPort 972.It Cm UsePrivilegedPort
953Specifies whether to use a privileged port for outgoing connections. 973Specifies whether to use a privileged port for outgoing connections.
954The argument must be 974The argument must be
diff --git a/sshd_config.5 b/sshd_config.5
index aad28f4c8..836add94f 100644
--- a/sshd_config.5
+++ b/sshd_config.5
@@ -34,7 +34,7 @@
34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36.\" 36.\"
37.\" $OpenBSD: sshd_config.5,v 1.57 2006/03/14 16:32:48 markus Exp $ 37.\" $OpenBSD: sshd_config.5,v 1.58 2006/07/02 17:12:58 stevesk Exp $
38.Dd September 25, 1999 38.Dd September 25, 1999
39.Dt SSHD_CONFIG 5 39.Dt SSHD_CONFIG 5
40.Os 40.Os
@@ -537,10 +537,17 @@ Specifies whether
537device forwarding is allowed. 537device forwarding is allowed.
538The argument must be 538The argument must be
539.Dq yes , 539.Dq yes ,
540.Dq point-to-point , 540.Dq point-to-point
541.Dq ethernet , 541(layer 3),
542or 542.Dq ethernet
543(layer 2), or
543.Dq no . 544.Dq no .
545Specifying
546.Dq yes
547permits both
548.Dq point-to-point
549and
550.Dq ethernet .
544The default is 551The default is
545.Dq no . 552.Dq no .
546.It Cm PermitUserEnvironment 553.It Cm PermitUserEnvironment