查看系统 是否 监听于tcp协议 22号端口
ss -tnl
查看ip
ip addr list
ifconfig
确保防火墙处于关闭状态:
iptables -L -n 查看防火墙
iptables -F 清除
CentOS 7:
systemctl stop firewalld.service 停止防火墙(当前有效)
systemctl disable firewalld.service 停止防火墙(永久有效)
CentOS 6:
service iptables stop
chkconfig iptables off
查看所用shell类型:
echo $SHELL