我可以使用2个不同的VPN连接访问两台服务器。我设法在我的机器上同时运行两个VPN(一些路由规则)。
我想scp <remote1>:some/file <remote2>:destination/folder
从我的笔记本电脑终端上进行操作。但是,当我尝试此操作时,scp
在remote1上调用的命令无法找到remote2,因为它们不在同一网络中。是否可以强制该scp
命令作为路由器通过我的笔记本电脑?
如果我尝试使用Nautilus(连接到服务器,两个服务器,然后复制粘贴),它都可以工作,但是我想从终端上进行。
较新的scp版本具有-3选项
-3
Copies between two remote hosts are transferred through the local host. Without this option the data is copied directly between the two remote hosts
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句