Linux command
dropbear 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start SSH server
dropbear
Start on specific port
dropbear -p [2222]
Start in foreground
dropbear -F
Start with specific host key
dropbear -r [/etc/dropbear/dropbear_rsa_host_key]
Disable password auth
dropbear -s
Enable root login
dropbear -g
说明
dropbear is a lightweight SSH server designed for embedded systems and resource-constrained environments. It implements SSH 2 protocol with support for public key and password authentication. Despite its small size, dropbear provides essential SSH functionality including remote login, port forwarding, and scp/sftp. It's commonly found in routers, embedded Linux, and initramfs.
参数
- -p _addr:port_
- Listen on port (multiple allowed).
- -F
- Run in foreground.
- -E
- Log to stderr instead of syslog.
- -r _keyfile_
- Use specific host key file.
- -s
- Disable password authentication.
- -g
- Disable root password auth.
- -B
- Allow blank passwords.
- -w
- Disallow root login.
- -j
- Disable local port forwarding.
- -k
- Disable remote port forwarding.
- -I _seconds_
- Idle timeout.
- -P _pidfile_
- PID file location.
FAQ
What is the dropbear command used for?
dropbear is a lightweight SSH server designed for embedded systems and resource-constrained environments. It implements SSH 2 protocol with support for public key and password authentication. Despite its small size, dropbear provides essential SSH functionality including remote login, port forwarding, and scp/sftp. It's commonly found in routers, embedded Linux, and initramfs.
How do I run a basic dropbear example?
Run `dropbear` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p _addr:port_ do in dropbear?
Listen on port (multiple allowed).