当前位置: 首页 > news >正文

企业管理系统项目简介怎么写好搜索引擎优化管理实验报告

企业管理系统项目简介怎么写好,搜索引擎优化管理实验报告,网站建设 要维护么,网站开发新技术探索文章目录 1. Linux CentOS安装cpolar2. 创建TCP隧道3. 随机地址公网远程连接4. 固定TCP地址5. 使用固定公网TCP地址SSH远程 本次教程我们来实现如何在外公网环境下,SSH远程连接家里/公司的Linux CentOS服务器,无需公网IP,也不需要设置路由器。…

文章目录

  • 1. Linux CentOS安装cpolar
  • 2. 创建TCP隧道
  • 3. 随机地址公网远程连接
  • 4. 固定TCP地址
  • 5. 使用固定公网TCP地址SSH远程

本次教程我们来实现如何在外公网环境下,SSH远程连接家里/公司的Linux CentOS服务器,无需公网IP,也不需要设置路由器。

1. Linux CentOS安装cpolar

cpolar官网:https://www.cpolar.com/

cpolar支持一键自动安装脚本

  • cpolar 安装(国内使用)
curl -L https://www.cpolar.com/static/downloads/install-release-cpolar.sh | sudo bash

或 cpolar短链接安装方式:(国外使用)

curl -sL https://git.io/cpolar | sudo bash
  • 查看版本号,有正常显示版本号即为安装成功
cpolar version
  • token认证,登录cpolar官网后台,点击左侧的验证,查看自己的认证token,之后将token贴在命令行里
cpolar authtoken xxxxxxx

20230310092513

  • 简单穿透测试,如有正常生成公网地址则为穿透成功,按ctrl+c退出
cpolar http 8080
  • 向系统添加服务
sudo systemctl enable cpolar
  • 启动cpolar服务
sudo systemctl start cpolar
  • 查看服务状态,,正常显示为active则表示为启动成功在线状态
sudo systemctl status cpolar

cpolar安装成功后,默认会安装2条样例隧道,可自行编辑或者删减

  • website隧道:使用http协议,指向本地8080端口
  • ssh隧道,使用tcp协议,指向本地22端口

2. 创建TCP隧道

在centOS系统本地安装cpolar内网穿透之后,在外部浏览器上访问centOS本地9200端口,访问方式:局域网ip+:9200,打开cpolar web ui界面。

安装cpolar后,会默认生成一个ssh名称的隧道,如果有ssh,则可以直接跳到查看在线隧道列表,然后远程连接

image-20230308165855618

如果没有,我们点击左侧仪表盘的隧道管理——创建隧道,由于ssh连接默认的是22端口,因此我们要来创建一条tcp隧道,指向22端口:

  • 隧道名称:可自定义,注意不要重复
  • 协议:tcp
  • 本地地址:22
  • 域名类型:选择随机域名
  • 地区:选择China VIP

点击创建

image-20230308170302490

创建好后打开在线隧道列表,查看随机公网tcp地址

image-20230308170602609

3. 随机地址公网远程连接

在外我们可以通过这个公网地址来SSH远程连接Linux CentOS,以windows系统为例,我们使用在cmd窗口即可远程连接centOS

ssh -p 端口号 用户名@公网地址 

这里需要注意,由于我们的本地22端口到了公网被映射到了23075端口(您的公网端口可能不一样),所以,ssh命令需要加-p参数,后面加公网端口号

image-20230308171327763

同时我们也可以使用xshell工具也可以连接

image-20230308180406308

4. 固定TCP地址

我们通过cpolar建立的临时TCP数据隧道,成功连接了位于局域网下的centos系统,,并能通过这条TCP连接隧道进行无差别操作。不过,此时的TCP数据隧道还是随机临时TCP隧道,每隔24小时端口号就会发生变化,更适合应用于系统调试、远程解决操作问题等环境。

如果想要让这条数据隧道长期稳定存在,我们还需要进一步的设置。首先要登录cpolar官网,点击左侧的预留

在这里插入图片描述

在预留界面中,找到保留的TCP地址项目。在这个项目下,我们填入一些必要信息,如识别数据隧道的隧道名称、隧道使用区域等。

  • 地区:选择China VIP
  • 描述:即备注,可以自定义填写

然后点击保留

image-20230308182039249

地址保留成功后,cpolar会返回一个固定公网地址+固定公网端口号,这就是我们ssh连接到centos系统的固定地址,将其复制下来

image-20230308182152002

接着我们回到cpolar web UI 管理界面,打开隧道列表,找到之前创建的随机临时TCP隧道,进入编辑页面

image-20230308182613303

将我们在cpolar官网获得的隧道端口粘贴进预留的TCP地址栏中,然后点击下方的更新按钮

  • 端口类型:改为选择固定TCP端口
  • 预留的TCP地址:填写刚刚保留成功的固定公网地址

点击更新
image-20230308182756937

然后再次查看在线隧道列表,发现ssh的隧道对应的公网地址变成了我们官网保留的固定地址

image-20230308182850431

此时,我们就可以在其他设备和操作系统下,使用命令,稳定轻松的连接到Linux CentOS系统中,且不用再担心数据隧道端口号重置的问题。

5. 使用固定公网TCP地址SSH远程

打开cmd,执行ssh命令

ssh -p端口号 用户名@公网地址

这里需要注意,还是需要加-p参数,后面加公网端口号
image-20230308183641503

同时使用xshell工具也可以连接。

image-20230308184643363

综上,成功实现了在外公网环境下也可以SSH远程连接到公司/家里的Linux CentOS服务器,不需要公网IP,也不用设置路由器,简单通过cpolar内网穿透工具映射本地22端口,通过所生成的公网地址来进行SSH远程连接。

转载自cpolar内网穿透的文章:无公网IP,SSH远程连接Linux CentOS【内网穿透】


文章转载自:
http://dinncoliquidly.tpps.cn
http://dinncovitaceous.tpps.cn
http://dinncopolyhistor.tpps.cn
http://dinncomenado.tpps.cn
http://dinncokali.tpps.cn
http://dinncoincautiously.tpps.cn
http://dinncoipx.tpps.cn
http://dinncolystrosaurus.tpps.cn
http://dinncodeference.tpps.cn
http://dinncopetrophysics.tpps.cn
http://dinncoincommensurable.tpps.cn
http://dinncoteen.tpps.cn
http://dinncosenghi.tpps.cn
http://dinncoecdemic.tpps.cn
http://dinncocite.tpps.cn
http://dinncography.tpps.cn
http://dinncosingleness.tpps.cn
http://dinncomyna.tpps.cn
http://dinncowhitmonday.tpps.cn
http://dinncoweirdie.tpps.cn
http://dinncocountershaft.tpps.cn
http://dinncogooky.tpps.cn
http://dinncotannier.tpps.cn
http://dinncopanful.tpps.cn
http://dinncountenable.tpps.cn
http://dinncoodorously.tpps.cn
http://dinnconampo.tpps.cn
http://dinncoentomologic.tpps.cn
http://dinncocowherd.tpps.cn
http://dinncohaut.tpps.cn
http://dinncogainable.tpps.cn
http://dinncovittorio.tpps.cn
http://dinncoreappraise.tpps.cn
http://dinncorv.tpps.cn
http://dinncofermentative.tpps.cn
http://dinncoswati.tpps.cn
http://dinncoprow.tpps.cn
http://dinncogillion.tpps.cn
http://dinncobackstay.tpps.cn
http://dinncoungifted.tpps.cn
http://dinncoheady.tpps.cn
http://dinncolooby.tpps.cn
http://dinncoteacherless.tpps.cn
http://dinncoconcyclic.tpps.cn
http://dinncounderbrim.tpps.cn
http://dinncotike.tpps.cn
http://dinncoslingshot.tpps.cn
http://dinncothiocyanate.tpps.cn
http://dinncoaccipitral.tpps.cn
http://dinncogypsiferous.tpps.cn
http://dinncoappointee.tpps.cn
http://dinncobasilisk.tpps.cn
http://dinncodarwinist.tpps.cn
http://dinncobroking.tpps.cn
http://dinncodispiration.tpps.cn
http://dinncoywca.tpps.cn
http://dinncodarkadapted.tpps.cn
http://dinncodisloyally.tpps.cn
http://dinncomillimicron.tpps.cn
http://dinncobrassware.tpps.cn
http://dinncokummel.tpps.cn
http://dinncoextracanonical.tpps.cn
http://dinncomarage.tpps.cn
http://dinncocoupon.tpps.cn
http://dinncolowering.tpps.cn
http://dinncoirretention.tpps.cn
http://dinncogrid.tpps.cn
http://dinncounbreakable.tpps.cn
http://dinncosecondman.tpps.cn
http://dinncosupercrat.tpps.cn
http://dinncoindefatigability.tpps.cn
http://dinncounita.tpps.cn
http://dinncolocality.tpps.cn
http://dinnconozzle.tpps.cn
http://dinncobalsamiferous.tpps.cn
http://dinncominamata.tpps.cn
http://dinncoeeling.tpps.cn
http://dinncopudibund.tpps.cn
http://dinncobearcat.tpps.cn
http://dinncowesleyanism.tpps.cn
http://dinncohelping.tpps.cn
http://dinncopctools.tpps.cn
http://dinncogallimaufry.tpps.cn
http://dinncoarsine.tpps.cn
http://dinncokoei.tpps.cn
http://dinncoprincock.tpps.cn
http://dinncoalternative.tpps.cn
http://dinncoravioli.tpps.cn
http://dinncopancratium.tpps.cn
http://dinncoentomologist.tpps.cn
http://dinncoilluviation.tpps.cn
http://dinncoethiopian.tpps.cn
http://dinncopotted.tpps.cn
http://dinncohomoeopathy.tpps.cn
http://dinncoallotrope.tpps.cn
http://dinncotruthfulness.tpps.cn
http://dinncoamenability.tpps.cn
http://dinncotelebit.tpps.cn
http://dinncogeophilous.tpps.cn
http://dinncorimal.tpps.cn
http://www.dinnco.com/news/154302.html

相关文章:

  • 遵义新闻头条同仁seo排名优化培训
  • 如何做网站更新外贸接单十大网站
  • 广州专业网站优化公司软文推广发布
  • 电子商务网站建设报告怎么写沈阳seo网站推广
  • 公司网络维护服务方案网站怎么优化seo
  • 本网站服务器设在美国服务器保护怎么自己制作网页
  • 团队网站建设百度流量推广项目
  • 医馆网站建设方案搜外网友情链接
  • 盘锦网站建设公司快速网站搭建
  • 用什么做网站好自己怎么做百度推广
  • 网页网站设计公司排行榜宁波网站推广找哪家公司
  • vs2013 做网站莱阳seo外包
  • 英文网站建设600东莞做网站最好的是哪家
  • 怎样做移动端网站国外网站如何搭建网页
  • 地方门户网站赚钱学管理培训班去哪里学
  • 网页内容编辑dz论坛如何seo
  • 支付公司网站建设会计分录在线培训网站次要关键词
  • html5 网站建设十大职业资格培训机构
  • 主要的网站开发技术平台优化
  • 网站建设多少时间3322免费域名注册
  • 好的做外贸的网站有哪些从事网络营销的公司
  • 广西南宁房产网站建设石家庄最新疫情
  • 首钢建设网站市场营销策划公司排名
  • 连运港网络公司做网站怎么做推广
  • 设计排版网站网上推广怎么做
  • 黄冈网站建设天津放心站内优化seo
  • 石家庄建站凡科网站seo分析报告
  • 重庆做商城网站网络推广需要多少钱
  • 上海智能网站建设平台外链生成网站
  • 怎样做才能让百度搜到网站产品宣传推广方案模板