通过跳板机代理将本地文件传输到远端服务器
- 通过-J参数指定跳板机
1 | $ ssh -J user@<bastion:port> <user@remote:port> |
- 在.ssh/config中配置
1 | ## The Bastion Host |
使用普通参数就可以实现跳转
1 | ssh remote |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Michael Blog!
1 | $ ssh -J user@<bastion:port> <user@remote:port> |
1 | ## The Bastion Host |
使用普通参数就可以实现跳转
1 | ssh remote |