ssh不能登录linux需要检查客户端和服务器端:
客服端:
ssh连接方式为:ip+端口号(默认为22)
服务器端:
1、先把sshd服务开启;
/etc/init.d/shhd?restrat2、把linux的防火墙关掉;
1)重启linux后生效:
chkconfig?iptables?off2)即时生效,重启后失效:
service?iptables?stop3、客户端重新ssh登陆linux。
ssh不能登录linux需要检查客户端和服务器端:
客服端:
ssh连接方式为:ip+端口号(默认为22)
服务器端:
1、先把sshd服务开启;
/etc/init.d/shhd?restrat2、把linux的防火墙关掉;
1)重启linux后生效:
chkconfig?iptables?off2)即时生效,重启后失效:
service?iptables?stop3、客户端重新ssh登陆linux。
Copyright © 2018 - 2021 www.yd166.com., All Rights Reserved.