我想scp通过另一个主机 (B) 将文件传输到主机 (C)。我可以使用以下命令:
scp -oProxyCommand="ssh -W %h:%p B" thefile C:destination
Run Code Online (Sandbox Code Playgroud)
它工作得很好,但这个不起作用:
scp -oProxyJump=B thefile C:destination
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
command-line: line 0: Bad configuration option: proxyjump
Run Code Online (Sandbox Code Playgroud)
我检查了scp手册(man scp)。我的scp命令没有ProxyJump选项,但有ProxyCommand选项。我更新了,openssh-client但没有帮助。
有人知道原因吗?