各种笔记
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 line
482 B

  1. 查看ip地址 ifconfig -a
  2. 编辑/etc/inetd.conf,去掉ssh前的#,保存退出.
  3. 编辑/etc/rc.conf,最后加入:sshd_enable="yes"即可
  4. 启动sshd服务:#/etc/rc.d/sshd start
  5. #netstat -an 检查服务是否启动,22端口有无sshd服务监听。
  6. 编辑/etc/ssh/sshd_config,在末尾加上如下内容:
  7. PermitRootLogin yes #允许root通过sshd登陆
  8. PermitEmptyPasswords no #不允许空密码
  9. PasswordAuthentication yes
  10. 重新启动sshd服务:/etc/rc.d/sshd restart。