花生壳+端口映射实现远程ssh访问内网linux主机
一、花生壳安装(安装前需要在花生壳网站注册获得一个免费域名,有了这个域名,后边才能在外网通过访问这个域名来实现ssh登陆内网linux主机)
[root@SZBOSS-IB2 桌面]# 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])
[root@SZBOSS-IB2 桌面]# ls
1.jpg CentOS-Base.repo linuxqq-v1.0.2-beta1.i386.rpm phddns-2.0.6.el6.x86_64.rpm yum yum~
[root@SZBOSS-IB2 桌面]# 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!
二、启动花生壳
后台启动花生壳并查看启动状态:
关闭花生壳:
三、端口映射
四、远程SSH访问内网主机
主机名就是在花生壳网站申请的免费域名
五、登陆成功
本文出自 “靜若繁花” 博客,请务必保留此出处http://ymz007.blog.51cto.com/2598720/1568634
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。