標籤:虛擬機器 電腦 網卡 vmware ssh 轉寄
為了讓遠程電腦能直接通過ssh對vmware裡的虛擬機器,通過net映射實現:
連接埠net網卡的虛擬機器rhel6.4的ip:192.168.20.128
650) this.width=650;" src="https://s2.51cto.com/wyfs02/M00/95/EA/wKiom1ka_fDT5VyDAABTk4D6SlU291.png-wh_500x0-wm_3-wmp_4-s_2803356774.png" title="QQ圖片20170516212551.png" alt="wKiom1ka_fDT5VyDAABTk4D6SlU291.png-wh_50" />
vmware設定
650) this.width=650;" src="https://s2.51cto.com/wyfs02/M00/95/EA/wKiom1ka__2jlf1xAACEkHo4Xl4293.png-wh_500x0-wm_3-wmp_4-s_748990042.png" style="float:none;" title="QQ圖片20170516212831.png" alt="wKiom1ka__2jlf1xAACEkHo4Xl4293.png-wh_50" />
虛擬機器22連接埠映射到宿主機的連接埠5555:
650) this.width=650;" src="https://s3.51cto.com/wyfs02/M00/95/EA/wKioL1ka__3jG4_YAAByhF4khCs149.png-wh_500x0-wm_3-wmp_4-s_2867800818.png" style="float:none;" title="QQ圖片20170516212956.png" alt="wKioL1ka__3jG4_YAAByhF4khCs149.png-wh_50" />
下面開啟SecureCRT測試一下:
串連宿主機的ip的5555連接埠
650) this.width=650;" src="https://s1.51cto.com/wyfs02/M01/95/EA/wKioL1ka__6SIKZJAABRYLh_6Gk122.png-wh_500x0-wm_3-wmp_4-s_3872937635.png" style="float:none;" title="QQ圖片20170516213250.png" alt="wKioL1ka__6SIKZJAABRYLh_6Gk122.png-wh_50" />
650) this.width=650;" src="https://s4.51cto.com/wyfs02/M01/95/EA/wKiom1ka__2zH1IsAAA1bmsQSgU537.png-wh_500x0-wm_3-wmp_4-s_4237517994.png" title="QQ圖片20170516213104.png" style="float:none;" alt="wKiom1ka__2zH1IsAAA1bmsQSgU537.png-wh_50" />
串連成功
650) this.width=650;" src="https://s1.51cto.com/wyfs02/M00/95/EA/wKioL1ka__6gR3ueAADJ9HOYmNU063.png-wh_500x0-wm_3-wmp_4-s_2278096644.png" style="float:none;" title="QQ圖片20170516213409.png" alt="wKioL1ka__6gR3ueAADJ9HOYmNU063.png-wh_50" />
本文出自 “謝育政” 部落格,請務必保留此出處http://kurol.blog.51cto.com/11433546/1926438
vmware net轉寄映射ssh連接埠