开启SSH

开启 ssh 远程连接

1、修改 sshd_config

输入 sudo vim /etc/ssh/sshd_config

做如下修改

PermitRootLogin yes [需要把注释 #号去掉,允许 Root 用户登录]

PasswordAuthentication yes [默认是不支持密码验证的,要把 no 改为 yes]
2、开机自启
chkconfig sshd on 

按提示输入管理员密码

3、 重启 sshd 服务
sudo service sshd restart #重启 sshd 服务

posted on 2019-04-02 17:45  FFFYYY  阅读(166)  评论(0编辑  收藏  举报