標籤:花生殼 內網 ssh linux 連接埠映射
一、花生殼安裝(安裝前需要在花生殼網站註冊獲得一個免費網域名稱,有了這個網域名稱,後邊才能在外網通過訪問這個網域名稱來實現ssh登陸內網linux主機)
[[email protected] 案頭]# wget http://download.oray.com/peanuthull/linux/phddns-2.0.6.el6.x86_64.rpm
--2014-10-27 20:11:30-- http://download.oray.com/peanuthull/linux/phddns-2.0.6.el6.x86_64.rpm
正在解析主機 download.oray.com... 61.152.96.115, 202.105.21.208
正在串連 download.oray.com|61.152.96.115|:80... 已串連。
已發出 HTTP 要求,正在等待回應... 200 OK
長度:30717 (30K) [application/x-redhat-package-manager]
正在儲存至: “phddns-2.0.6.el6.x86_64.rpm”
100%[=====================================================================================================================================================>] 30,717 --.-K/s in 0.1s
2014-10-27 20:11:30 (271 KB/s) - 已儲存 “phddns-2.0.6.el6.x86_64.rpm” [30717/30717])
[[email protected] 案頭]# ls
1.jpg CentOS-Base.repo linuxqq-v1.0.2-beta1.i386.rpm phddns-2.0.6.el6.x86_64.rpm yum yum~
[[email protected] 案頭]# yum localinstall -y phddns-2.0.6.el6.x86_64.rpm
Loaded plugins: fastestmirror
Setting up Local Package Process
Examining phddns-2.0.6.el6.x86_64.rpm: phddns-2.0.6-1.el6.x86_64
Marking phddns-2.0.6.el6.x86_64.rpm to be installed
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package phddns.x86_64 0:2.0.6-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================
Installing:
phddns x86_64 2.0.6-1.el6 /phddns-2.0.6.el6.x86_64 55 k
Transaction Summary
===============================================================================================================================================================================================
Install 1 Package(s)
Total size: 55 k
Installed size: 55 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : phddns-2.0.6-1.el6.x86_64 1/1
Verifying : phddns-2.0.6-1.el6.x86_64 1/1
Installed:
phddns.x86_64 0:2.0.6-1.el6
Complete!
二、啟動花生殼
後台啟動花生殼並查看啟動狀態:
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/4D/41/wKioL1ROVIrwC9eXAABTo1LLEXg299.jpg" style="float:none;" title="11.jpg" alt="wKioL1ROVIrwC9eXAABTo1LLEXg299.jpg" />650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/4D/40/wKiom1ROVmKgVSIjAAJE5H24dqI390.jpg" title="13.jpg" alt="wKiom1ROVmKgVSIjAAJE5H24dqI390.jpg" />
關閉花生殼:
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/4D/41/wKioL1ROVMWRF4t7AACD22ec18U340.jpg" title="12.jpg" alt="wKioL1ROVMWRF4t7AACD22ec18U340.jpg" />
三、連接埠映射
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/4D/41/wKioL1ROVVbxPM-DAAITvfN-VD0731.jpg" title="14.jpg" alt="wKioL1ROVVbxPM-DAAITvfN-VD0731.jpg" />
四、遠程SSH訪問內網主機
主機名稱就是在花生殼網站申請的免費網域名稱
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/4D/41/wKioL1ROVxnQAtUUAAK_esUm4nY590.jpg" title="15.jpg" alt="wKioL1ROVxnQAtUUAAK_esUm4nY590.jpg" />
五、登陸成功
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/4D/41/wKioL1ROWTGTbTqQAAFx0Xuq0FM484.jpg" title="16.jpg" alt="wKioL1ROWTGTbTqQAAFx0Xuq0FM484.jpg" />
本文出自 “靜若繁花” 部落格,請務必保留此出處http://ymz007.blog.51cto.com/2598720/1568634
花生殼+連接埠映射實現遠程ssh訪問內網linux主機