How to transfer a file between two remote servers using scp from a third, local machine?

后端 未结 6 512
小鲜肉
小鲜肉 2020-12-24 03:04

I\'m trying to copy a file from one remote server to another remote server from my local machine. Here\'s what I\'m trying

6条回答
  •  温柔的废话
    2020-12-24 03:28

    You only need passwords if you don't have entries in the authorised_keys file. Once you have logged in to the 2 servers (localA -> remoteB & remoteB -> remoteC) and established the secure connection your original command should work.

提交回复
热议问题