[关闭]
@cdmonkey 2017-11-20T05:37:04.000000Z 字数 923 阅读 1265

dropbear

开源工具


http://myit-spot.blogspot.co.uk/2016/05/how-to-install-dropbear-on-centos-7.html

Yum

操作系统版本:CentOS 7.3

  1. yum install dropbear

配置:

  1. # 创建配置文件:
  2. vim /etc/sysconfig/dropbear
  3. # 增加配置内容:
  4. KEYGEN=/usr/bin/dropbearkey
  5. DROPBEAR=/usr/sbin/dropbear
  6. RSA_KEY=/etc/dropbear/dropbear_rsa_host_key
  7. DSS_KEY=/etc/dropbear/dropbear_dss_host_key
  8. PID_FILE=/var/run/dropbear.pid
  9. OPTIONS="-p 2222"

启动服务:

  1. systemctl start dropbear
  2. # 服务启动后进行检查:
  3. [root@dockergluster01 tools]# lsof -i:2222
  4. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
  5. dropbear 18047 root 3u IPv4 62447354 0t0 TCP *:EtherNet/IP-1 (LISTEN)
  6. dropbear 18047 root 4u IPv6 62447355 0t0 TCP *:EtherNet/IP-1 (LISTEN)
  7. dropbear 18052 root 5u IPv4 62447422 0t0 TCP dockergluster01:EtherNet/IP-1->bogon:54690 (ESTABLISHED)

开机自启动:

  1. [root@dockergluster01 tools]# chkconfig dropbear on
  2. Note: Forwarding request to 'systemctl enable dropbear.service'.
  3. Created symlink from /etc/systemd/system/multi-user.target.wants/dropbear.service to /usr/lib/systemd/system/dropbear.service.
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注