软件官网:https://matt.ucc.asn.au/dropbear/releases/
操作步骤:
1、wget https://matt.ucc.asn.au/dropbear/releases/dropbear-2022.83.tar.bz2
./configure
ake && ake install
2、配置dropbear
mkdir /etc/dropbear
/usr/local/bin/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
/usr/local/bin/dropbearkey -t rsa -s 4096 -f /etc/dropbear/dropbear_rsa_host_key
3、设置成开机自动启动:/etc/rc.local
启动Dropbear1:/usr/local/sbin/dropbear (默认22端口)
启动Dropbear2:/usr/local/sbin/dropbear -p 2222 (自定义2222)
客户端连接服务器: /usr/local/bin/dbclient -p 2222 root@192.168.1.10
说明:两台机器都安装,一台作为客户端,一台作为服务器。
标签:bin,方案,etc,openssh,2222,dropbear,usr,local,替代 From: https://blog.51cto.com/feirenraoyuan/7178578