rsync through ssh tunnel [closed]

ⅰ亾dé卋堺 提交于 2019-12-02 15:30:17

Here's what worked for me.

I run a command in the background to tunnel to the remote host:

 ssh -N -L 2222:remote.example.com:22 bridge.example.com&

then I rsync to localhost like this:

rsync -auve "ssh -p 2222" . me@localhost:/some/path

Try this one-liner:

rsync -av -e "ssh -A root@proxy ssh" ./src root@target:/dst
radim

You should connect to the port 22 of clusternode, so the tunnel should look like

ssh -L localhost:8000:clusternode:22 user@bridge
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!