如何使用Putty登陸安裝在VirtualBox裏的ubuntu

我是在Windows操做系統裏用VirtualBox安裝了ubuntu操做系統。ubuntu

在VirtualBox裏操做ubuntu的終端不是很方便,好比我想在Windows裏複製一些命令到ubuntu的終端執行。而Putty默認便可支持這個跨系統的複製粘貼操做。VirtualBox沒法調整console裏字體大小,而Putty能夠很方便的修改console裏的字體。網絡

那麼如何用Putty鏈接安裝在本地虛擬機裏的ubuntu系統呢?ssh

(1). ubuntu的虛擬器網絡設置爲NAT 模式:字體

(2). 選擇高級模式,打開Port Forwarding:spa

維護以下一條規則:操作系統

(3). 打開Putty,建立一個新的登陸會話,Host name輸入上圖在VirtualBox裏維護的Host IP和Host Port. 鏈接類型選擇爲SSHserver

(4). 在VirtualBox的ubuntu裏安裝SSH Server:rem

sudo apt-get install openssh-serverget

啓動SSH服務:虛擬機

確保SSH服務啓動成功。

以後便可使用Putty登陸安裝在VirtualBox裏的ubuntu了:

相關文章
相關標籤/搜索