使用putty上传文件到linux
作者: 
停下浮躁的心 | 来源:发表于
2017-04-22 22:03 被阅读173次
- 找到自己安装putty.exe的文件夹
 
- 在http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html 网页上下载64位的pscp.exe,并放到安装putty.exe的文件夹下
 
- 打开windows powershell ,进入putty.exe的文件夹下,输入ls查看是否存在pscp.exe
 
- 双击pscp.exe
 
- 使用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
- 在该文件夹下输入命令
.\pscp   本地文件路径   用户名@IP:linux系统路径
在linux中可使用 pwd 查看当前路径
 
- 输入密码后上传成功
 
          本文标题:使用putty上传文件到linux
本文链接:https://www.haomeiwen.com/subject/jbqezttx.html
网友评论