Skip to content

Commit f98eb58

Browse files
committed
Use % rather than # for port delimiter
1 parent 3525cab commit f98eb58

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cli-runopts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ static void parse_hostname(const char* orighostarg) {
610610
cli_opts.username = m_strdup(cli_opts.own_user);
611611
}
612612

613-
port = strchr(cli_opts.remotehost, '#');
613+
port = strchr(cli_opts.remotehost, '%');
614614
if (!port) {
615615
// legacy separator
616616
port = strchr(cli_opts.remotehost, '/');

dbclient.1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dbclient \- lightweight SSH2 client
1515
.B dbclient
1616
[
1717
.I args ]
18-
.I [user1]@host1[#port1],[user2]@host2[#port2],...
18+
.I [user1]@host1[%port1],[user2]@host2[%port2],...
1919

2020
.SH DESCRIPTION
2121
.B dbclient
@@ -26,7 +26,7 @@ environments, while still being functional and secure enough for general use.
2626
.B \-p \fIport
2727
Connect to
2828
.I port
29-
on the remote host. Alternatively a port can be specified as hostname#port.
29+
on the remote host. Alternatively a port can be specified as hostname%port.
3030
Default is 22.
3131
.TP
3232
.B \-i \fIidfile
@@ -126,7 +126,7 @@ Dropbear will also allow multiple "hops" to be specified, separated by commas. I
126126
this case a connection will be made to the first host, then a TCP forwarded
127127
connection will be made through that to the second host, and so on. Hosts other than
128128
the final destination will not see anything other than the encrypted SSH stream.
129-
A port for a host can be specified with a hash (eg matt@martello#44 ).
129+
A port for a host can be specified with a hash (eg matt@martello%44 ).
130130
This syntax can also be used with scp or rsync (specifying dbclient as the
131131
ssh/rsh command). A file can be "bounced" through multiple SSH hops, eg
132132

0 commit comments

Comments
 (0)