@cdmonkey
2017-11-20T05:37:04.000000Z
字数 923
阅读 1578
开源工具
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/dropbearkeyDROPBEAR=/usr/sbin/dropbearRSA_KEY=/etc/dropbear/dropbear_rsa_host_keyDSS_KEY=/etc/dropbear/dropbear_dss_host_keyPID_FILE=/var/run/dropbear.pidOPTIONS="-p 2222"
启动服务:
systemctl start dropbear# 服务启动后进行检查:[root@dockergluster01 tools]# lsof -i:2222COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEdropbear 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 onNote: 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.
