comparison dbclient.1 @ 1516:33b872649eb7

Add dbclient '-J &fd' option for a file descriptor Based on patch by Harald Becker
author Matt Johnston <matt@ucc.asn.au>
date Sun, 18 Feb 2018 15:12:15 +0800
parents f787f60f8e45
children 94323a20e572
comparison
equal deleted inserted replaced
1515:d68d61e7056a 1516:33b872649eb7
109 if 0 disables keepalives. If no response is received for 3 consecutive keepalives the connection will be closed. 109 if 0 disables keepalives. If no response is received for 3 consecutive keepalives the connection will be closed.
110 .TP 110 .TP
111 .B \-I \fIidle_timeout 111 .B \-I \fIidle_timeout
112 Disconnect the session if no traffic is transmitted or received for \fIidle_timeout\fR seconds. 112 Disconnect the session if no traffic is transmitted or received for \fIidle_timeout\fR seconds.
113 .TP 113 .TP
114
115 .\" TODO: how to avoid a line break between these two -J arguments?
114 .B \-J \fIproxy_command 116 .B \-J \fIproxy_command
117 .TP
118 .B \-J \fI&fd
119 .br
115 Use the standard input/output of the program \fIproxy_command\fR rather than using 120 Use the standard input/output of the program \fIproxy_command\fR rather than using
116 a normal TCP connection. A hostname should be still be provided, as this is used for 121 a normal TCP connection. A hostname should be still be provided, as this is used for
117 comparing saved hostkeys. This command will be executed as "exec proxy_command ..." with the 122 comparing saved hostkeys. This command will be executed as "exec proxy_command ..." with the
118 default shell. 123 default shell.
124
125 The second form &fd will make dbclient use the numeric file descriptor as a socket. This
126 can be used for more complex tunnelling scenarios. Example usage with socat is
127
128 socat EXEC:'dbclient -J &38 ev',fdin=38,fdout=38 TCP4:host.example.com:22
129
119 .TP 130 .TP
120 .B \-B \fIendhost:endport 131 .B \-B \fIendhost:endport
121 "Netcat-alike" mode, where Dropbear will connect to the given host, then create a 132 "Netcat-alike" mode, where Dropbear will connect to the given host, then create a
122 forwarded connection to \fIendhost\fR. This will then be presented as dbclient's 133 forwarded connection to \fIendhost\fR. This will then be presented as dbclient's
123 standard input/output. 134 standard input/output.