centos6.6学习笔记:xshell无法链接linux系统

可能是没有安装ssh服务。


解决原因1:

使用netstat,查看是否启动shh服务;
开启ssh服务:

service sshd start

关闭ssh服务:

service sshd stop

重启ssh服务:

servcie sshd restart

SSH服务开机自动启动:

chkconfig sshd on

取消开机自启动:

chkconfig sshd off

开启服务后,检查服务状态:

service sshd status

解决原因2:
安装ssh:

yum install openssh-server

评论

暂无评论