bash 如何使用bash跨服务器scp?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1010748/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 20:59:33 来源:igfitidea点击:
how to scp across servers using bash?
提问by omg
Is it doable?
可行吗?
回答by paxdiablo
Well, yes, it is. How about this?
嗯,是的,确实如此。这个怎么样?
scp pax@machine1:/tmp/qq pax@machine2:/tmp/qq
Either that's it, or I'm missing something fundamental in your question.
要么就是这样,要么我在你的问题中遗漏了一些基本的东西。
See:
看:
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2

