Linux 开启ssh服务,远程连接|服务器禁止访问问题

25. July 2016 Linux 0
第一步 开终端命令,通过 apt-get install ssh 安装

第二步 service ssh start 打开ssh服务  或者 /etc/init.d/sshd start

第三步 vim /etc/ssh/sshd.config  PermitRootLogin without passwd 改成 PermitRootLogin yes //表示可以让用户使用密码登录

第四步 service ssh restart

开启: service iptables start 
关闭: service iptables stop 

重启后生效  永久生效
开启: chkconfig iptables on 
关闭: chkconfig iptables off

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.