How can I copy file from Putty to windows? [closed]

天涯浪子 提交于 2019-12-03 01:50:56

问题


I opened putty and connected to the server with my login ID and password. And trying to copy a file which is present there to my local windows system.


回答1:


It worked using PSCP. Instructions:

  1. Download PSCP.EXE from Putty download page
  2. Open command prompt and type set PATH=<path to the pscp.exe file>
  3. In command prompt point to the location of the pscp.exe using cd command
  4. Type pscp
  5. use the following command to copy file form remote server to the local system

    pscp [options] [user@]host:source target
    

So to copy the file /etc/hosts from the server example.com as user fred to the file c:\temp\example-hosts.txt, you would type:

pscp fred@example.com:/etc/hosts c:\temp\example-hosts.txt



回答2:


One of the putty tools is pscp.exe; it will allow you to copy files from your remote host.



来源:https://stackoverflow.com/questions/6217055/how-can-i-copy-file-from-putty-to-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!