我们有个服务器,天天有人尝试用ssh登录,所以决定把端口换掉。vi /etc/ssh/sshd_config修改为Port 8080这样就可以用 ssh -p 8080 username@hostname来登录了。