dropbear
lightweight SSH server
- Provided by: dropbear-bin (Version: 2026.94-1ubuntu1)
- Source: dropbear
- Report a bug
lightweight SSH server
dropbear |
[flag arguments] [-b
banner] [-r
hostkeyfile] [-p
[address:]port] |
dropbear is a small SSH server
-b
banner-r
hostkey-R option. See “Host
Key Files” below.-R-F-E-e-m-w-s-g-t-s option.-j-k-p
[address:]port-l
interface-idropbear under TCP/IP servers like inetd, tcpsvd,
or tcpserver. In program mode the -F option is
implied, and -p options are ignored.-P
pidfile-a-W
windowsize-K
timeout_seconds-I
idle_timeout-M-M 0 will disable
the session duration 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.-T
max_authentication_attemptsMAX_AUTH_TRIES)-c
forced_commandcommand=
option. The original command is saved in the
SSH_ORIGINAL_COMMAND environment variable (see
below).
The forced command is started using the user's normal shell, the same as occurs for normal commands.
Unix stream forwarding is disabled when a forced command is
set, since that may allow a bypass of the forced command. Other SSH
features such as TCP forwarding are still allowed by default - it may be
desirable to disable those using -j or
-k options when using forced command.
-D
authorized_keys_dir-Q
algo-VEd25519,
RSA, or ECDSA key. The
authorized_keys file and its containing
~/.ssh directory must only be writable by the
user, otherwise Dropbear will not allow a login using public key
authentication.
Each line is of the form
[restrictions] ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIgAsp... [comment]
and can be extracted from a Dropbear private host key with
‘dropbearkey -y’. This is the same
format as used by OpenSSH, though the restrictions are a subset (keys
with unknown restrictions are ignored). Restrictions are comma
separated, with double quotes around spaces in arguments. Available
restrictions are:
no-port-forwardingno-agent-forwardingno-X11-forwardingno-ptyrestrictpermitopen="host:port"*’) may be used in
port specification for matching any port. Hosts must be literal domain
names or IP addresses.permitlisten="port"permitlisten="port"
options separated by commas can be set in
authorized_keys. Port can be 0 to allow the
listen port to be dynamically allocated on the server.command="forced_command"-c
command line option overrides this. See -c
documentation for behaviour of forced commands.
When using command= it is often
desirable to also use restrict option to
avoid other SSH features that may allow additional access.
If the -r command line option is
specified the default files are not loaded. Host key files are of the
form generated by dropbearkey(1). The
-R option can be used to automatically generate
keys in the default location - keys will be generated after startup when
the first connection is established. This had the benefit that the
system /dev/urandom random number source has a
better chance of being securely seeded.
Dropbear sets the standard variables USER,
LOGNAME, HOME,
SHELL, PATH, and
TERM.
The variables below are set for sessions as appropriate.
SSH_TTYSSH_CONNECTION<remote_ip> <remote_port>
<local_ip> <local_port>’.DISPLAYSSH_ORIGINAL_COMMANDcommand=
authorized_keys option was used, the original
command is specified in this variable. If a shell was requested this is
set to an empty value.SSH_AUTH_SOCKDropbear only supports SSH protocol version 2.
Matt Johnston
<matt@ucc.asn.au>.
Gerrit Pape
<pape@smarden.org>
wrote this manual page.