PSCP---操作系统间文件互传小工具

为什么用?

我们有时候会经常需要在各个操作系统间传输文件,如果服务器没有安装FTP服务,或者不知道FTP账户密码,又或者觉得FTP操作不是很方便,想实现一键传输。

PSCP作为一款轻量级的软件,使用简单,安全可靠,且可定制脚本,是比较好的文件传输工具。

怎么用?

  • 下载地址:

64位 https://the.earth.li/~sgtatham/putty/latest/w64/pscp.exe
32位 https://the.earth.li/~sgtatham/putty/latest/w32/pscp.exe

  • 把pscp.exe放到C:\Windows\System32 文件夹下(在任意地方打开cmd.exe都能执行pscp命令)
  • linux --> windows (linux下 /tmp/test.log 传到 windows D:\test\文件夹下)
    pscp -pw linuxroot密码 [email protected]:/tmp/test.log D:\test\
  • windows --> linux (windows D:\test\test.log 传到 linux下 /tmp/文件夹下)
    pscp -pw linuxroot密码 D:\test\test.log [email protected]: /tmp/
  • 定制脚本(每天都需要查看linux服务器上日志):
  1. 新建log.bat
  2. 内容为:
    pscp -pw linuxroot密码 [email protected]:/tmp/test.log D:\test\

你可能感兴趣的:(PSCP---操作系统间文件互传小工具)