終端: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