1、把服务器上的/root/dir目录取回本地"C:\My Documents\data\"目录

C:\>pscp.exe -r root@IP:/root/dir "C:\My Documents\data\"

2、把服务器上的/root/file文件取回来本地当前目录

C:\>pscp.exe root@IP:/root/file .

3、把本地目录dir、文件file传输到Linux服务器的/root/,并指定服务器端口2009

C:\>pscp.exe -P 2009 -r dir file root@IP:/root/

4、把本地文件file传输到Linux服务器的/root/

C:\>pscp.exe file IP:/root/

它会提示你输入密码,就像Linux下使用scp那样。

【注意】这里pscp会使用你Windows登陆的用户名,因此你可能需要指定Linux用户名。

C:\>pscp.exe file root@IP:/root/
或者
C:\>pscp.exe -l root file IP:/root/

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2022-02-05
  • 2022-12-23
  • 2021-07-18
  • 2022-02-12
  • 2021-12-18
  • 2022-01-26
猜你喜欢
  • 2022-12-23
  • 2021-12-03
  • 2021-12-03
  • 2022-01-07
  • 2022-01-28
  • 2022-01-28
  • 2022-12-23
相关资源
相似解决方案