← 返回命令列表

Linux command

dbclient 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Connect

dbclient [user]@[host]

Example

dbclient [user]@[host] -p 2222

Example

dbclient -i [path/to/key_file] [user]@[host]

Example

dbclient [user]@[host] -t [command] [arguments]

Forward agent

dbclient -A [user]@[host]

说明

dbclient is the SSH client from the Dropbear suite, a lightweight SSH implementation designed for embedded systems and environments with limited resources. It provides standard SSH functionality including remote shell access, command execution, port forwarding, and agent forwarding, all with a significantly smaller binary size and memory footprint than OpenSSH. Dropbear is commonly found on routers, IoT devices, embedded Linux systems, and other resource-constrained environments. The entire suite (server and client) is typically under 110KB compressed, compared to several megabytes for OpenSSH. dbclient supports the core SSH protocol features: public key authentication, password authentication, local and remote port forwarding, and TTY allocation for interactive sessions. However, it omits some advanced OpenSSH features to maintain its small size. One notable difference is key format: dbclient uses Dropbear's own key format rather than OpenSSH's format. The dropbearconvert utility can convert between the two formats when needed.

参数

-p _port_
Connect to specified port (default: 22)
-i _keyfile_
Identity key file (Dropbear format); multiple allowed
-l _user_
Login as user on the remote host
-t
Allocate a PTY
-T
Don't allocate a PTY
-A
Forward authentication agent connections
-L _listenport:host:port_
Local port forwarding
-R _listenport:host:port_
Remote port forwarding
-g
Allow non-local hosts to connect to forwarded ports
-N
Don't request a remote shell
-f
Fork into the background after authentication
-y
Always accept unknown hostkeys without prompting
-W _windowsize_
Per-channel receive window buffer size
-K _seconds_
Keepalive interval in seconds
-s
Request the remote command as a subsystem (used for sftp).
-o _option_
Specify options in OpenSSH config file format (e.g., -o "StrictHostKeyChecking=no").
-c _cipherlist_
Comma-separated list of ciphers to enable.
-m _MAClist_
Comma-separated list of MACs to enable.

FAQ

What is the dbclient command used for?

dbclient is the SSH client from the Dropbear suite, a lightweight SSH implementation designed for embedded systems and environments with limited resources. It provides standard SSH functionality including remote shell access, command execution, port forwarding, and agent forwarding, all with a significantly smaller binary size and memory footprint than OpenSSH. Dropbear is commonly found on routers, IoT devices, embedded Linux systems, and other resource-constrained environments. The entire suite (server and client) is typically under 110KB compressed, compared to several megabytes for OpenSSH. dbclient supports the core SSH protocol features: public key authentication, password authentication, local and remote port forwarding, and TTY allocation for interactive sessions. However, it omits some advanced OpenSSH features to maintain its small size. One notable difference is key format: dbclient uses Dropbear's own key format rather than OpenSSH's format. The dropbearconvert utility can convert between the two formats when needed.

How do I run a basic dbclient example?

Run `dbclient [user]@[host]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p _port_ do in dbclient?

Connect to specified port (default: 22)