2016-04-02 66 views

回答

2

您可以使用scp通过ssh复制文件:

scp local_file remote_machine:/target/location 

您也可以运行命令目录虽然SSH:

ssh remote_machine 'echo 1 > remote_file' 

甚至管到ssh然后继续远程:

cat local_file | ssh remote_machine 'cat > remote_file' 
+0

忘了告诉,有时我使用Windows,有时是Linux,这个命令与两个操作系统相关? – Moshe9362

+1

第一和第二应该适用于Windows和Linux – andlrc