linux与linux,linux与windows之间用SSH传输文件

来源:互联网 发布:java堆排序算法 编辑:程序博客网 时间:2024/06/07 16:13

linux与linux之间传送文件:

scp file username@hostIP:文件地址

例:

scp abc.txt endall@IP:/home/endall/abc.txt

 

windows与linux之间传送文件:

笔者这里用putty,当然还可以用其它工具,如 SSH Secure File Transfer Client,图形界面下就比较方面,我这里介绍命令下传送文件,这里windows下的服务端用的是 F-secure

pscp file  username@hostIP:文件地址

例:

pscp d:abc.txt endall@IP:/home/endall/abc.txt

pscp endall@IP:/home/endall/abc.txt d:abc

在linux下传输文件到windows类似

原创粉丝点击