使用Putty遠程登入CentOS

來源:互聯網
上載者:User
   vista環境下,本機網卡地址為192.168.0.56(有線,網關為192.168.0.1),無線使用DHCP。使用Virtualbox安裝CentOS5.4後,配置網路參數以便Putty可以類比遠程登陸CentOS系統的步驟:
  1.在Virtualbox的“網路”設定介面,選擇網路連接方式為“Host-only Adapter”。
  2.在vista案頭的“網路”表徵圖上單擊滑鼠右鍵,單擊“屬性”選項,選擇“管理網路連接”開啟介面,可以找到“VirtualBox Host-Only Network”,設定其IP地址為192.168.1.1。
  3.啟動CentOS,以root登陸後:
  (1)vi /etc/sysconfig/network ,添加/修改
     NETWORKING=yes
     NETWORKING_IPV6=no
     HOSTNAME=localhost.localdomain
  (2)vi /etc/sysconfig/network-scripts/ifcfg-eth0,添加/修改
     # Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
     DEVICE=eth0
     BOOTPROTO=static
     IPADDR=192.168.1.2
     HWADDR=08:00:27:54:BC:67
     NETMASK=255.255.255.0
     ONBOOT=yes
     TYPE=Ethernet
  (3)vi /etc/resolv.conf,添加/修改:
     search localdomain
  (4)vi /etc/hosts,添加/修改:
     # Do not remove the following line, or various programs
     # that require network functionality will fail.
     127.0.0.1               localhost.localdomain localhost
     ::1             localhost6.localdomain6 localhost6
     192.168.1.2   xyycentos       cent
  5.從vista、linux兩個系統互ping,都能ping通即OK。
    vista: ping 192.168.1.1
    linux: ping 192.168.1.2   
  6.在vista下啟動Putty,設定IP地址為192.168.1.2,開啟即可。

相關文章

聯繫我們

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