ssh远程登陆和MTR测试

ssh -p 22 root@142.234.255.66

which mtr

yum install mtr -y

mtr -c 20 -n --report www.baidu.com

mtr -n -r -c 100 x.x.x.x

 

追加和覆盖

cat >>1.txt << EOF
11122
5546
1111
EOF

cat >1.txt << EOF
789
456
123
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 #安装工具查看端口监听

 

posted @ 2018-11-14 15:26  夜辰雪扬  阅读(387)  评论(0编辑  收藏  举报