Putty Related

[PSCP]

//Copy a directory from the remote Linux machine to your local Windows machine with the predefined username and password.
pscp -pw yourPassword -r yourName@x4100.unix-center.net:/home/c/y/tmp c:\putty

//Copy some files matched wildcards from the remote Linux machine to your local Windows machine.

 

pscp youName@x4100.unix-center.net:/home/c/y/tmp/*.txt   c:\putty

//Copy some files matched wildcards from  your local Windows machine to the remote Linux machine.

pscp c:\putty\*.txt  youName@x4100.unix-center.net:/home/c/y/tmp/ 

 

//PSCP usage

 

Z:\owendadmin>pscp
PuTTY Secure Copy client
Release 0.62
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 authentication
  -noagent  disable use of Pageant
  -agent    enable use of Pageant
  -batch    disable all interactive prompts
  -unsafe   allow server-side wildcards (DANGEROUS)
  -sftp     force use of SFTP protocol
  -scp      force use of SCP protocol

 

 

 

posted on 2012-04-07 23:13  alicegu  阅读(90)  评论(0)    收藏  举报