如何将文件从远程服务器复制到 Windows 中使用 Putty? [英] How can I copy a file from a remote server to using Putty in Windows?

查看:97
本文介绍了如何将文件从远程服务器复制到 Windows 中使用 Putty?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 Putty 会话将文件从远程服务器复制到本地 Windows 系统?

How do I copy a file from a remote server to my local Windows system using a Putty session?

推荐答案

它使用 PSCP 工作.说明:

It worked using PSCP. Instructions:

  1. 从 Putty 下载页面下载 PSCP.EXE
  2. 打开命令提示符并输入 set PATH=
  3. 在命令提示符中使用 cd 命令指向 pscp.exe 的位置
  4. 输入pscp
  5. 使用以下命令将文件从远程服务器复制到本地系统

  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

所以要以用户 fred 的身份从服务器 example.com 复制文件 /etc/hosts 到文件c:\temp\example-hosts.txt,你可以输入:

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

这篇关于如何将文件从远程服务器复制到 Windows 中使用 Putty?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆