From c6b2c0e0bf35c14f59940a8c9a0248bb2082e534 Mon Sep 17 00:00:00 2001 From: djm Date: Sat, 14 Feb 2009 05:34:21 +0000 Subject: [PATCH] - djm@cvs.openbsd.org 2009/02/12 03:46:17 [ssh_config.5] document RemoteForward usage with 0 listen port --- ChangeLog | 3 +++ ssh_config.5 | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b2b60e17..20395fb7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24,6 +24,9 @@ - djm@cvs.openbsd.org 2009/02/12 03:44:25 [ssh.1] consistency: Dq => Ql + - djm@cvs.openbsd.org 2009/02/12 03:46:17 + [ssh_config.5] + document RemoteForward usage with 0 listen port 20090212 - (djm) [sshpty.c] bz#1419: OSX uses cloning ptys that automagically diff --git a/ssh_config.5 b/ssh_config.5 index b9ec9457..66d1ee12 100644 --- a/ssh_config.5 +++ b/ssh_config.5 @@ -34,7 +34,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $OpenBSD: ssh_config.5,v 1.116 2009/01/24 17:10:22 naddy Exp $ +.\" $OpenBSD: ssh_config.5,v 1.117 2009/02/12 03:46:17 djm Exp $ .Dd $Mdocdate$ .Dt SSH_CONFIG 5 .Os @@ -813,6 +813,13 @@ Multiple forwardings may be specified, and additional forwardings can be given on the command line. Privileged ports can be forwarded only when logging in as root on the remote machine. +.Pp +If the +.Ar port +argument is +.Ql 0 , +the listen port will be dynamically allocated on the server and reported +to the client at run time. .Pp If the .Ar bind_address -- 2.45.2