SSH更改端口

更改端口52113

[root@web03-9 ~]# vim /etc/ssh/sshd_config
 13 Port 52113

[root@web03-9 ~]# /etc/init.d/sshd restart
Stopping sshd:                                             [  OK  ]
Starting sshd:                                             [  OK  ]

修改连接端口

连接

[root@web03-9 ~]# scp -P52113 /tmp/md5sum.txt 172.16.1.32:/opt/
Address 172.16.1.32 maps to bogon, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
root@172.16.1.32's password: 
md5sum.txt                                                                                         100%   69KB  68.6KB/s   00:00    

接收端 

[root@nfs02-32 ~]# ll /opt/
total 76
-rw-r--r--  1 root root 70228 May  2 17:12 md5sum.txt
drwxr-xr-x. 2 root root  4096 Mar 26  2015 rh

  

 

  

 

posted @ 2017-05-02 17:01  reborn枪  阅读(162)  评论(0)    收藏  举报