xshell连接不上linux问题

1、首先确定linux系统有网络。

使用ifconfig查看是否有ip地址,没有的话需要先配置。

xshell连接不上linux问题

2、打开sshd服务:service sshd start

3、关闭防火墙服务:service iptables stop

最后还可以把sshd设置为开机启动,而防火墙为开机不启动,命令为:

chkconfig ssdh on

chkconfig iptables off