@cdmonkey
2017-11-20T13:37:04.000000Z
字数 923
阅读 1344
开源工具
http://myit-spot.blogspot.co.uk/2016/05/how-to-install-dropbear-on-centos-7.html
操作系统版本:CentOS 7.3
yum install dropbear
配置:
# 创建配置文件:
vim /etc/sysconfig/dropbear
# 增加配置内容:
KEYGEN=/usr/bin/dropbearkey
DROPBEAR=/usr/sbin/dropbear
RSA_KEY=/etc/dropbear/dropbear_rsa_host_key
DSS_KEY=/etc/dropbear/dropbear_dss_host_key
PID_FILE=/var/run/dropbear.pid
OPTIONS="-p 2222"
启动服务:
systemctl start dropbear
# 服务启动后进行检查:
[root@dockergluster01 tools]# lsof -i:2222
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dropbear 18047 root 3u IPv4 62447354 0t0 TCP *:EtherNet/IP-1 (LISTEN)
dropbear 18047 root 4u IPv6 62447355 0t0 TCP *:EtherNet/IP-1 (LISTEN)
dropbear 18052 root 5u IPv4 62447422 0t0 TCP dockergluster01:EtherNet/IP-1->bogon:54690 (ESTABLISHED)
开机自启动:
[root@dockergluster01 tools]# chkconfig dropbear on
Note: Forwarding request to 'systemctl enable dropbear.service'.
Created symlink from /etc/systemd/system/multi-user.target.wants/dropbear.service to /usr/lib/systemd/system/dropbear.service.