admin 管理员组

文章数量: 888297

CentOS开启ssh远程登录

修改sshd配置文件

vim /etc/ssh/sshd_config

把以下的配置前面的#去掉 然后修改如下
PermitRootLogin yes
PasswordAuthentication yes

解决Linux之间使用ssh连接慢的问题,修改配置项GSSAPIAuthentication:
GSSAPIAuthentication no


重启sshd服务

sudo service sshd start

至此通过winscp工具则能连接上主机。

本文标签: CentOS开启ssh远程登录