sftp -v -o IdentityFile=./id_rsa -o port=2222 -o ProxyCommand='/usr/bin/nc -v -x 10.107.0.88:9090 %h %p' SFTP@10.107.100.100
或编写ssh-config文件
cat ssh_config
Host dmz-sftp
Hostname 10.107.0.88
User SFTP
Port 2222
IdentityFile /home/app/id_rsa
ProxyCommand /usr/bin/nc -v -x 10.107.100.100:9090 %h %p
执行命令
ssh -F ssh-config dmz-sftp 即可
阅读(8659) | 评论(0) | 转发(0) |