summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-10-03 18:13:42 +1000
committerDarren Tucker <dtucker@zip.com.au>2005-10-03 18:13:42 +1000
commitc8d6421a645529a3c831dccc5d9d9e073de68657 (patch)
treecffc52ca23b243ff58e6b494973099aaf603e657
parentce321d8a30a81222d11a4c27fd353804a9afecd3 (diff)
- djm@cvs.openbsd.org 2005/09/19 11:37:34
[ssh_config.5 ssh.1] mention ability to specify bind_address for DynamicForward and -D options; bz#1077 spotted by Haruyama Seigo
-rw-r--r--ChangeLog6
-rw-r--r--ssh.144
-rw-r--r--ssh_config.526
3 files changed, 69 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index c8b2f3f86..7af3d15f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,10 @@
10 [sshd.c ssh.c misc.h sftp.c ssh-keygen.c ssh-keysign.c sftp-server.c 10 [sshd.c ssh.c misc.h sftp.c ssh-keygen.c ssh-keysign.c sftp-server.c
11 scp.c misc.c ssh-keyscan.c ssh-add.c ssh-agent.c] 11 scp.c misc.c ssh-keyscan.c ssh-add.c ssh-agent.c]
12 ensure that stdio fds are attached; ok deraadt@ 12 ensure that stdio fds are attached; ok deraadt@
13 - djm@cvs.openbsd.org 2005/09/19 11:37:34
14 [ssh_config.5 ssh.1]
15 mention ability to specify bind_address for DynamicForward and -D options;
16 bz#1077 spotted by Haruyama Seigo
13 17
1420050930 1820050930
15 - (dtucker) [openbsd-compat/openbsd-compat.h] Bug #1096: Add prototype 19 - (dtucker) [openbsd-compat/openbsd-compat.h] Bug #1096: Add prototype
@@ -3050,4 +3054,4 @@
3050 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 3054 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
3051 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 3055 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
3052 3056
3053$Id: ChangeLog,v 1.3904 2005/10/03 08:11:24 dtucker Exp $ 3057$Id: ChangeLog,v 1.3905 2005/10/03 08:13:42 dtucker Exp $
diff --git a/ssh.1 b/ssh.1
index b0749763b..135e3b6c5 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.209 2005/07/06 09:33:05 dtucker Exp $ 37.\" $OpenBSD: ssh.1,v 1.210 2005/09/19 11:37:34 djm Exp $
38.Dd September 25, 1999 38.Dd September 25, 1999
39.Dt SSH 1 39.Dt SSH 1
40.Os 40.Os
@@ -47,7 +47,12 @@
47.Op Fl 1246AaCfgkMNnqsTtVvXxY 47.Op Fl 1246AaCfgkMNnqsTtVvXxY
48.Op Fl b Ar bind_address 48.Op Fl b Ar bind_address
49.Op Fl c Ar cipher_spec 49.Op Fl c Ar cipher_spec
50.Op Fl D Ar port 50.Oo Fl D\ \&
51.Sm off
52.Oo Ar bind_address : Oc
53.Ar port
54.Sm on
55.Oc
51.Op Fl e Ar escape_char 56.Op Fl e Ar escape_char
52.Op Fl F Ar configfile 57.Op Fl F Ar configfile
53.Op Fl i Ar identity_file 58.Op Fl i Ar identity_file
@@ -494,13 +499,20 @@ The default is
494 arcfour256,arcfour,aes192-cbc,aes256-cbc,aes128-ctr, 499 arcfour256,arcfour,aes192-cbc,aes256-cbc,aes128-ctr,
495 aes192-ctr,aes256-ctr'' 500 aes192-ctr,aes256-ctr''
496.Ed 501.Ed
497.It Fl D Ar port 502.It Fl D Xo
503.Sm off
504.Oo Ar bind_address : Oc
505.Ar port
506.Sm on
507.Xc
498Specifies a local 508Specifies a local
499.Dq dynamic 509.Dq dynamic
500application-level port forwarding. 510application-level port forwarding.
501This works by allocating a socket to listen to 511This works by allocating a socket to listen to
502.Ar port 512.Ar port
503on the local side, and whenever a connection is made to this port, the 513on the local side, optionally bound to the specified
514.Ar bind_address .
515Whenever a connection is made to this port, the
504connection is forwarded over the secure channel, and the application 516connection is forwarded over the secure channel, and the application
505protocol is then used to determine where to connect to from the 517protocol is then used to determine where to connect to from the
506remote machine. 518remote machine.
@@ -509,6 +521,30 @@ Currently the SOCKS4 and SOCKS5 protocols are supported, and
509will act as a SOCKS server. 521will act as a SOCKS server.
510Only root can forward privileged ports. 522Only root can forward privileged ports.
511Dynamic port forwardings can also be specified in the configuration file. 523Dynamic port forwardings can also be specified in the configuration file.
524.Pp
525IPv6 addresses can be specified with an alternative syntax:
526.Sm off
527.Xo
528.Op Ar bind_address No /
529.Ar port
530.Xc
531.Sm on
532or by enclosing the address in square brackets.
533Only the superuser can forward privileged ports.
534By default, the local port is bound in accordance with the
535.Cm GatewayPorts
536setting.
537However, an explicit
538.Ar bind_address
539may be used to bind the connection to a specific address.
540The
541.Ar bind_address
542of
543.Dq localhost
544indicates that the listening port be bound for local use only, while an
545empty address or
546.Sq *
547indicates that the port should be available from all interfaces.
512.It Fl e Ar ch | ^ch | none 548.It Fl e Ar ch | ^ch | none
513Sets the escape character for sessions with a pty (default: 549Sets the escape character for sessions with a pty (default:
514.Ql ~ ) . 550.Ql ~ ) .
diff --git a/ssh_config.5 b/ssh_config.5
index 9ddb09480..2e38be950 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.61 2005/07/08 12:53:10 jmc Exp $ 37.\" $OpenBSD: ssh_config.5,v 1.62 2005/09/19 11:37:34 djm 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
@@ -320,7 +320,29 @@ Specifies that a TCP/IP port on the local machine be forwarded
320over the secure channel, and the application 320over the secure channel, and the application
321protocol is then used to determine where to connect to from the 321protocol is then used to determine where to connect to from the
322remote machine. 322remote machine.
323The argument must be a port number. 323.Pp
324The argument must be
325.Sm off
326.Oo Ar bind_address : Oc Ar port .
327.Sm on
328IPv6 addresses can be specified by enclosing addresses in square brackets or
329by using an alternative syntax:
330.Oo Ar bind_address Ns / Oc Ns Ar port .
331By default, the local port is bound in accordance with the
332.Cm GatewayPorts
333setting.
334However, an explicit
335.Ar bind_address
336may be used to bind the connection to a specific address.
337The
338.Ar bind_address
339of
340.Dq localhost
341indicates that the listening port be bound for local use only, while an
342empty address or
343.Sq *
344indicates that the port should be available from all interfaces.
345.Pp
324Currently the SOCKS4 and SOCKS5 protocols are supported, and 346Currently the SOCKS4 and SOCKS5 protocols are supported, and
325.Nm ssh 347.Nm ssh
326will act as a SOCKS server. 348will act as a SOCKS server.