利用BitviseSSH免root實現Windows vs Linux的檔案互傳

來源:互聯網
上載者:User

標籤:利用   root   顯示   amazon   vss   工具   ssh服務   add   class   

虛擬機器,,,品質有點差,大家看看!

-------------------

在拿不到Linux root賬戶的情況下,winscp等工具是無法實現檔案傳輸的,此時我們可以借用Bitvise SSH;

:https://www.bitvise.com/ssh-server-download   Bitvise SSH Server installer - version 7.32, size 14.0 MB.我們需要server版軟體

該工具可以實現雙向傳輸,即linux到Windows和 Linux 擷取Windows端檔案。

 

下載後檔案名稱為 BvSshServer-Inst.exe,雙擊開始安裝;

 

勾選個人版本

 

輸入個人資訊,此處的資訊不作為scp賬戶。下面會講到scp賬戶。

 

安裝成功提示,點擊確認初次開機

 

點擊“open easy setting”

 

選擇1、server setting,勾選開放防火牆,當然為了安全你可以自己設定僅限區域網路

 

3、virtual account 設定,這裡就是scp賬戶資訊,很重要

點擊add

 

設定賬戶資訊

 

點擊virtual account password,設定賬戶密碼

 

點擊ok返回賬戶設定介面

這裡會顯示已存在的所有賬戶資訊,也就是說對同一個Windows可以設定不同的賬戶,用處要看具體使用者環境。

 

點擊save changes。回到server 介面。

點擊  start server ,即可啟動ssh服務。如有殺毒軟體攔截,請點擊全部允許。

 

下面我們開始測試下,注意下Windows目錄寫法

1、從Linux 擷取Windows檔案,

Windows 檔案路徑:E:\test\A_common_libs_2.3.2.zip

在Linux端執行如下:將遠程Windows e盤test目錄的zip scp到Linux home目錄

文法:scp [email protected]_ip:/盤符:/目錄/檔案名稱 /Linux目錄,多個檔案請使用*.尾碼【exp *.zip】,或者 * 代替全部檔案。

第一次scp會提示接受秘鑰,點擊yes即可,我這裡已經接受過了。

$ sudo scp ****@192.168.**.**:/e:/test/A_common_libs_2.3.2.zip /home/[sudo] password for ******: ****@192.168.**.**‘s password: A_common_libs_2.3.2.zip                     100%  940KB 939.7KB/s   00:00

測試成功,在擷取過程中,Windows用戶端會收到log資訊。

2、從Linux 傳送檔案到 Windows 目錄

在Linux端執行如下:將目前的目錄的zip scp到遠程Windows的d盤根目錄

文法:scp /Linux名目錄/檔案名稱 [email protected]_ip:/盤符:/目錄/

$ sudo scp A_common_libs_2.3.2.zip ****@192.168.**.**:/d:/                ****@192.168.**.**‘s password: A_common_libs_2.3.2.zip   

測試成功!

virtual_account_name 參考 virtual account 設定頁。

ps,Windows端都是使用的英文全路徑,關於中文路徑請自行嘗試下,不推薦哈。

利用BitviseSSH免root實現Windows vs Linux的檔案互傳

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.