ssh -p 22 [email protected]
which mtr
yum install mtr -y
mtr -c 20 -n --report www.baidu.com
mtr -n -r -c 100 x.x.x.x
追加和覆盖
cat >>.txt << EOF EOF cat >.txt << EOF EOF
修改端口后无法远程
[root@localhost ~]# setenforce 0
[root@localhost ~]# vi /etc/ssh/sshd_config
[root@localhost ~]# systemclt restart sshd
vi /etc/selinux/config #修改安全重启服务器
reboot
yum install -y net-tools #安装工具查看端口监听