Mutihop on ssh

来源:互联网 发布:销售报表数据分析 编辑:程序博客网 时间:2024/05/06 10:41

I want to copy a file from my machine A to server C, but only have access to server C through server B.

Instead of first transferring to server B, log in and then transfer to server C, Is is possible to transfer the file directly with SCP or similar programs?

 

On server B edit ~/.ssh/config

  Host ServerB-IP

    ProxyCommand ssh near ServerB-IP ServerC-IP 22

 

0 0