终端:terminal
远程连接:
ssh协议:secure shell
查看系统是否监听于tcp协议的22号端口;
ss -tnl
查看ip:
ifconfig
或者
ip addr list
测试网络连同性能:
ping ip
ctrl c 终止;或者命令输错了,不需要了,直接ctrl c
查看防火墙:
iptables -L -n
centos7关闭防火墙:
先禁用再停止:
systemctl disable firewalld.service
systemctl stop firewalld.service
centos6关闭防火墙:
service iptables stop
chkconfig iptables off