winscp连接centos7出现拒绝连接
1.编辑 /etc/ssh/sshd_config文件: sudo vi /etc/ssh/sshd_config将PermitRootLogin 的值改成 yes将PermitEmptyPassword 的值改成 no保存退出2.重启ssh:查看状态:systemctl status sshd.service启动服务:systemctl star...
·
1.编辑 /etc/ssh/sshd_config文件: sudo vi /etc/ssh/sshd_config
将PermitRootLogin 的值改成 yes
将PermitEmptyPassword 的值改成 no
保存退出
2.重启ssh:
查看状态:
systemctl status sshd.service
启动服务:
systemctl start sshd.service
重启服务:
systemctl restart sshd.service
开机自启:
systemctl enable sshd.service
更多推荐


所有评论(0)