ssh配置
第一步,进入sshd配置文件
vi /etc/ssh/sshd_config
第二步,对ssh文件进行如下设置
Port 22
PermitEmptyPasswords no
PasswordAuthentication yes
设置好后保存退出
分别执行以下命令
-
systemctl restart sshd 重启ssh服务
-
systemctl enable sshd.service 允许开机自动启动
-
systemctl stop firewalld.service 关闭运行的防火墙
完成上述步骤后,可以使用xshell进行ssh服务了