『筆記』windows與CentOS間檔案傳輸(win下實行)

來源:互聯網
上載者:User

標籤:pscp檔案傳輸

使用工具:PSCP (an SCP client, i.e. command-line secure file copy)也許不是所有人都知道,但是說到 putty 應該很多人都知道吧,直接到 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html 下載 putty.zip 壓縮包,其中包含了 putty pscp psftp plink pageant 等小工具,軟體很小,但是基本的功能都具備了,當然,其中也包含了各工具的使用說明。


基本用法:1.開啟windows命令視窗,找到 pscp.exe 所在檔案夾;    

                2.官方提供的使用手冊

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/75/24/wKiom1YzMMuCz8CvAAJCVrE84DE850.jpg" title="Screenshot from 2015-10-30 16:56:08.png" alt="wKiom1YzMMuCz8CvAAJCVrE84DE850.jpg" />



簡單記作: pscp   源地址(即檔案所在位置)    目標地址(即檔案接收方 ) 


示範如下 :(請確保linux端開啟了sshd服務,之前實驗的時候怎麼都無法成功,竟是關了sshd服務 ,同時需要注意windows與linux下檔案路徑的不同之處,即 ‘ / ‘  與  ‘ \ ‘ 的區別 )

  1. 從centos複製檔案到windows

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/75/21/wKioL1YzLMSxtJbZAAGuyzm6dbU013.jpg" title="Screenshot from 2015-10-30 16:26:52.png" alt="wKioL1YzLMSxtJbZAAGuyzm6dbU013.jpg" />


2.從windows複製檔案到centos

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/75/21/wKioL1YzLCiw8z-FAAHrJqfZX0o686.jpg" title="Screenshot from 2015-10-30 16:21:53.png" alt="wKioL1YzLCiw8z-FAAHrJqfZX0o686.jpg" />



不成功的部分:

**此處出現錯誤,是因為centos的普通使用者lenovo對172.22.22.102主機的 / 目錄沒有寫入許可權

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/75/24/wKiom1YzLD3CIGVmAAF6NaUrksE327.jpg" title="Screenshot from 2015-10-30 16:18:42.png" alt="wKiom1YzLD3CIGVmAAF6NaUrksE327.jpg" />


**此處的錯誤,是因為centos端禁止了root使用者遠程登陸主機

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/75/24/wKiom1YzLCDTJSCFAAI0Bs_qqfs668.jpg" title="Screenshot from 2015-10-30 16:20:46.png" alt="wKiom1YzLCDTJSCFAAI0Bs_qqfs668.jpg" />


**此處錯誤是因為路徑中存在空格,造成誤判

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/75/24/wKiom1YzK73xt1Z3AAJJ-dRtJC8654.jpg" title="Screenshot from 2015-10-30 16:22:50.png" alt="wKiom1YzK73xt1Z3AAJJ-dRtJC8654.jpg" />




^_^

本文出自 “junight” 部落格,請務必保留此出處http://junight.blog.51cto.com/10828785/1708146

『筆記』windows與CentOS間檔案傳輸(win下實行)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.