开启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 服务

你可能感兴趣的:(开启SSH)