1. 安装corkscrew
sudo apt-get install corkscrew
2. 配置SSH config
编辑/etc/ssh/ssh_config,在文件中追加以下内容
Host cloud
Hostname xx.xx.xx.xx
User root
ProxyCommand /usr/bin/corkscrew 10.1.9.100 808 %h %p
注:xx.xx.xx.xx为远程主机IP
10.1.9.100为代理ip,808为代理port
3. 登录远程Host
ssh cloud
4. scp远程拷贝
sudo scp -o proxycommand="/usr/bin/corkscrew 10.1.9.100 808 %h %p" ./file root@xx.xx.xx.xx:/root/