psftp和pscp的使用感受


一直以來,都使用winscp這個小工具,從服務器上上傳和下載文件,拖拖拉拉就完成了文件的上傳和下載,很方便。winscp基於putty開發。今天,使用putty套件下的psftppscp,感受一下命令行下的上傳操作(下載操作類似)。


C:\zhou\putty>psftp [email protected]

Using username "oracle".

[email protected]'s password:

Remote working directory is /home/oracle

psftp> put C:\xxxx\p13390677_112040_Linux-x86-64_3of7.zip

local:C:\xxxx\p13390677_112040_Linux-x86-64_3of7.zip => remote:/home/oracle/p133

90677_112040_Linux-x86-64_3of7.zip

psftp> put -r C:\xxxx

local:C:\xxxx\p13390677_112040_Linux-x86-64_3of7.zip => remote:/home/oracle/xxxx

/p13390677_112040_Linux-x86-64_3of7.zip


C:\zhou\putty>pscp C:\xxxx [email protected]

Local to local copy not supported


C:\zhou\putty>pscp -r C:\xxxx [email protected]:/home/oracle

[email protected]'s password:

p13390677_112040_Linux-x8 | 1177003 kB | 8916.7 kB/s | ETA: 00:00:00 | 100%


C:\zhou\putty>pscp C:\xxxx\p13390677_112040_Linux-x86-64_3of7.zip oracle@192.

168.1.110:/home/oracle

[email protected]'s password:

p13390677_112040_Linux-x8 | 283748 kB | 9784.4 kB/s | ETA: 00:01:31 |  24%



psftppscp都支持單文件和目錄的上傳操作,操作成功後,服務器上會出現同名的文件和目錄(psftppscp支持上傳目錄和文件名更改)。psftp默認會上傳到用戶的主目錄,pscp需要顯示的指明上傳的路徑。上傳文件的時候,psftp不顯示進度,pscp有詳細地進度顯示。


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