[color=blue][color=yellow][color=red][i][b] 检查SSH是否开启,并关闭防火墙。netstat -antp | grep sshd 或netstat -anp | more ,关闭防火墙命令行 service iptables status,service [color=red]iptables stop;开机默认关闭设置:chkconfig iptables --list,chkconfig iptables off. reboot.
网络是否被ping通。
查看双方电脑是否[size=xx-small]
IP是在同一个网段。开启网卡 ifconfig eth0 up,ifconfig eth0 192.168.0.2 netmask 255.255.255.0。
cd /看是否存在.ssh文件,若没有需yum install open-server, service sshd restart , chkconfig sshd on.若有cd .ssh 设置免密码模式 ssh-keygen -t rsa ,ssh-copy-id -i locahost ,验证 ssh localhost exit.[/b ][/i][/color][/color][/size][/color][/color]
配置开课吧
猜你喜欢
转载自engel.iteye.com/blog/2273861
今日推荐
周排行