客户端配置
vim ~/.ssh/config
Host *
ProxyCommand nc -X 5 -x 127.0.0.1:1080 %h %p
Host myvps
HostName haotizi.tk
User root
Port 22
cd ~/.ssh
ssh-copy-id root@haotizi.tk
ssh myvps
修改 ssh 端口
# 服务端 vi /etc/ssh/sshd_config
# Port 22 --> To yours port
service sshd restart