使用putty上传文件到linux

  1. 找到自己安装putty.exe的文件夹
  2. 在http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html 网页上下载64位的pscp.exe,并放到安装putty.exe的文件夹下
  3. 打开windows powershell ,进入putty.exe的文件夹下,输入ls查看是否存在pscp.exe
  4. 双击pscp.exe
  5. 使用pscp或.\pscp查看是否能够使用
PS E:\yunzhuji> .\pscp
PuTTY Secure Copy client
Release 0.68
Usage: pscp [options] [user@]host:source target
       pscp [options] source [source...] [user@]host:target
       pscp [options] -ls [user@]host:filespec
Options:
  -V        print version information and exit
  -pgpfp    print PGP key fingerprints and exit
  -p        preserve file attributes
  -q        quiet, don't show statistics
  -r        copy directories recursively
  -v        show verbose messages
  -load sessname  Load settings from saved session
  -P port   connect to specified port
  -l user   connect with specified username
  -pw passw login with specified password
  -1 -2     force use of particular SSH protocol version
  -4 -6     force use of IPv4 or IPv6
  -C        enable compression
  -i key    private key file for user authentication
  -noagent  disable use of Pageant
  -agent    enable use of Pageant
  -hostkey aa:bb:cc:...
            manually specify a host key (may be repeated)
  -batch    disable all interactive prompts
  -proxycmd command
            use 'command' as local proxy
  -unsafe   allow server-side wildcards (DANGEROUS)
  -sftp     force use of SFTP protocol
  -scp      force use of SCP protocol
  -sshlog file
  -sshrawlog file
            log protocol details to a file
  1. 在该文件夹下输入命令
    .\pscp 本地文件路径 用户名@IP:linux系统路径
    在linux中可使用 pwd 查看当前路径
  2. 输入密码后上传成功

你可能感兴趣的:(使用putty上传文件到linux)