On Tue, Feb 07, 2006 at 05:59:24PM +0100, Markus Schaber wrote: > It seems the -R option from dbclient is documented inaccurate in the man > page: > > -R localport:remotehost:remoteport > Remote port forwarding. Forward the port remoteport on the > remote host remotehost to port localport on the local host. > > dbclient -h explains it as: > -R <listenport:remotehost:remoteport> Remote port forwarding > which is correct and more consistent with e. G. ssh, putty/plink and lsh. > > So maybe a more accurate description would be: > -R listenport:desthost:destport > Remote port forwarding: Forward the port listenport of the > remote host to port destport on host desthost.
Hi, thanks for the report, I suggest the following patch against dbclient.1. Regards, Gerrit.
diff --git a/dbclient.1 b/dbclient.1 index 4d7cc3c..94ddda9 100644 --- a/dbclient.1 +++ b/dbclient.1 @@ -29,24 +29,23 @@ Read the identity from file .I idfile (multiple allowed). .TP -.B \-L \fIlocalport\fR:\fIremotehost\fR:\fIremoteport\fR +.B \-L \fIlistenport\fR:\fIhost\fR:\fIport\fR Local port forwarding. Forward the port -.I localport -on the local host to port -.I remoteport -on the remote host -.IR remotehost . +.I listenport +on the local host through the SSH connection to port +.I port +on the host +.IR host . .TP -.B \-R \fIlocalport\fR:\fIremotehost\fR:\fIremoteport\fR +.B \-R \fIlistenport\fR:\fIhost\fR:\fIport\fR Remote port forwarding. Forward the port -.I remoteport -on the remote host -.I remotehost -to port -.I localport -on the local host. +.I listenport +on the remote host through the SSH connection to port +.I port +on the host +.IR host . .TP .B \-l \fIuser Username.