dbclient
lightweight SSH client
- Provided by: dropbear-bin (Version: 2026.94-1ubuntu1)
- Source: dropbear
- Report a bug
lightweight SSH client
dbclient |
[flag arguments] [-p
port] [-i
id] [-L
l:h:p] [-R
l:h:p] [-l
user] host
[more flags] [command] |
dbclient |
[args] [user1]@host1[^port1],[user2]@host2[^port2],... |
dbclient is the client part of Dropbear
SSH
-t and
-T).-p
port-i
idfile-L
[listenaddress]:listenport:host:port-R
[listenaddress]:listenport:host:port-l
user-t-T-t.-N-f-N) is required. This is useful when using
password authentication.-g-L and -R forwarded ports,
though remote connections to -R forwarded ports
may be limited by the ssh server.-y-ASSH_AUTH_SOCK will be set) for public key
authentication. Forwarding is only enabled if -A
is specified.
Beware that a forwarded agent connection will allow the remote server to have the same authentication credentials as you have used locally. A compromised remote server could use that to log in to other servers.
In many situations Dropbear's multi-hop mode is a better and more secure alternative to agent forwarding, avoiding having to trust the intermediate server.
If the SSH agent program is set to prompt when a key is used,
the -o DisableTrivialAuth
option can prevent UI confusion.
-W
windowsize-K
timeout_seconds-I
idle_timeout-zAF21 setting for QoS, letting network devices give
it higher priority. Some devices may have problems with that,
-z can be used to disable it.-J
proxy_command |
-J
&fdexec proxy_command ...’ with the
default shell.
The second form
&fd will make dbclient
use the numeric file descriptor as a socket. This can be used for more
complex tunnelling scenarios. Example usage with socat is
socat EXEC:'dbclient -J &38 ev',fdin=38,fdout=38 TCP4:host.example.com:22
-B
endhost:endport-c
cipherlist-c help to list
possibilities.-m
MAClist-m help to list
possibilities.-o
optionyes/no arguments also
accept y/n.
The following options have currently been implemented:
BatchModeyes or
no (the default).BindAddressCompressionyes or
no. Default is no compression (with default
build options). Enabling compression can be a security weakness in
some circumstances, as the size of network traffic may leak
information about the encrypted data.
Compression will only be used when the server also supports it.
DisableTrivialAuthExitOnForwardFailureyes or
no (the default).ForwardAgentyes or no (the
default).GatewayPortsyes or no (the
default).IdentityFilePasswordAuthenticationDROPBEAR_PASSWORD env is specified then it
still will be used. The argument must be yes
(the default) or no.Port-p
argument.ProxyCommandServerAliveIntervalStrictHostKeyCheckingyes to refuse connection to hosts where
the host key is not already correct in
known_hosts. Entries must be added to
known_hosts manually.
Use no to skip the
known_hosts key checking.
Use accept-new to add new host
keys to the known_hosts and refuse to
connect if the host key has changed.
ask is the default.
UseSyslog-ssftp -S dbclient
user@host-b
[address][:port]-Q
algo-VDropbear will also allow multiple "hops" to be specified, separated by commas. In this case a connection will be made to the first host, then a TCP forwarded connection will be made through that to the second host, and so on. Hosts other than the final destination will not see anything other than the encrypted SSH stream. A port for a host can be specified with a caret (eg matt@martello^44). This syntax can also be used with scp or rsync (specifying dbclient as the ssh/rsh command). A file can be "bounced" through multiple SSH hops, eg
scp -S dbclient matt@martello,root@wrt,canyons:/tmp/dump .
Note that hostnames are resolved by the prior hop (so "canyons" would be resolved by the host "wrt") in the example above, the same way as other -L TCP forwarded hosts are. Host keys are checked locally based on the given hostname.
Typing a newline followed by the key sequence
‘~.’ (tilde, dot) will terminate a
connection. The sequence ‘~^Z’ (tilde,
ctrl-z) will background the connection. This behaviour only applies when a
PTY is used.
‘~R’ will perform a key
re-exchange of ephemeral session keys.
DROPBEAR_PASSWORDDROPBEAR_PASSWORD. Care
should be taken that the password is not exposed to other users on a
multi-user system, or stored in accessible files.SSH_ASKPASSSSH_ASKPASS should be set to the path of a program
that will return a password on standard output. This program will only be
used if either DISPLAY is set and standard input
is not a TTY, or the environment variable
SSH_ASKPASS_ALWAYS is set.=’. Empty
lines are ignored. Text starting with
‘#’ is a comment, and also ignored.
The file is not considered if multi-hop connection is used. Values on the command line override the respective values in the file.
The recognized keywords are as follows. Keywords are case insensitive and values are case insensitive.
HostHost entry or EOF
determine the list of applicable options.HostNamePortUserIdentityFileBecause this file contains a secret it must have strict permissions to prevent abuse attempts - read/write for the executing user, and no access to anyone else.
If compiled with zlib support and if the server supports it, dbclient will always use compression.
Matt Johnston
<matt@ucc.asn.au>.
Mihnea Stoenescu wrote initial Dropbear client
support.
Gerrit Pape
<pape@smarden.org>
wrote this manual page.