putty的pscp在服務器與本地之間的拷貝

文檔

PuTTY Secure Copy client
Release 0.73
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
  -no-sanitise-stderr  don't strip control chars from standard error
  -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 [options] [user@]host:source target

    拷貝到本地
  2. pscp [options] source [source...] [user@]host:target

    本地的多個文件拷貝到服務器
  3. pscp [options] -ls [user@]host:filespec

    打印服務器指定文件夾下的全部文件.以及相關信息。

下面都是可選參數說明。

  1. -r copy directories recursively

    拷貝文件夾服務器

    pscp [-r] source [source...] [user@]host:targetsession

  2. -P port connect to specified port

    連接到指定端口。ssh

  3. -l user connect with specified username

    聲明鏈接用戶。ide

  4. -pw passw login with specified password

    聲明登陸密碼,明文ui

相關文章
相關標籤/搜索