pscp --windows上下載遠程SSH服務器實用工具

1、下載pscp.exe         pscp.exe 工具下載地址

下載完後,複製粘貼到C:\Windows\System32目錄下,以便我們來調用。或者將下載文件的路徑添加到系統環境變量中。

2、pscp工具使用

譬如:從遠程SSH服務器服務器下載一個叫做text的文件夾到本地pc的 “D:/ ” 目錄下

pscp -scp -r others@server-ip:/home/others/text/  D:/

更多選項,可參照pscp的幫助文檔,如下:

PS C:\WINDOWS\system32> 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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章