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

综合信息网站模板东莞seo优化排名推广

综合信息网站模板,东莞seo优化排名推广,郑州网站建设案例,岳阳网站平台设计文章目录 前言1. macOS打开远程登录2. 局域网内测试ssh远程3. 公网ssh远程连接macOS3.1 macOS安装配置cpolar3.2 获取ssh隧道公网地址3.3 测试公网ssh远程连接macOS 4. 配置公网固定TCP地址4.1 保留一个固定TCP端口地址4.2 配置固定TCP端口地址 5. 使用固定TCP端口地址ssh远程 …

文章目录

  • 前言
  • 1. macOS打开远程登录
  • 2. 局域网内测试ssh远程
  • 3. 公网ssh远程连接macOS
    • 3.1 macOS安装配置cpolar
    • 3.2 获取ssh隧道公网地址
    • 3.3 测试公网ssh远程连接macOS
  • 4. 配置公网固定TCP地址
    • 4.1 保留一个固定TCP端口地址
    • 4.2 配置固定TCP端口地址
  • 5. 使用固定TCP端口地址ssh远程

前言

macOS系统自带有Secure Shell 客户端,它可让您登录到侦听传入SSH连接的远程服务器和台式机。我们可以用ssh username@ip来ssh到服务器,但通常局限于局域网内的远程。

本次教程,我们将使用cpolar内网穿透工具,映射ssh服务默认端口:22端口,获取公网地址,实现在公网环境下的ssh远程登录,无需公网IP,也无需设置路由器。

1. macOS打开远程登录

  • 打开系统偏好设置,点击共享

20221229171056

  • 勾选打开远程登录,复制右侧的ssh远程登录命令

20221229171220

2. 局域网内测试ssh远程

本例以windows系统测试ssh远程,点击开始菜单栏搜索cmd,打开命令提示符,输入ssh命令,提示确认,输入yes并回车,提示输入macOS登录密码

ssh username@ip地址

如:

ssh eve@192.168.0.106

局域网内ssh远程登录macOS成功。

20221229171233

3. 公网ssh远程连接macOS

当成功实现在局域网内ssh远程登录macOS后,接下来,我们将通过cpolar内网穿透映射22端口,实现在公网环境下ssh远程连接macOS,无需公网IP,也无需设置路由器。

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

3.1 macOS安装配置cpolar

macos安装cpolar内网穿透可通过homebrew包管理器进行安装,无需手动下载安装包。

  • 安装homebrew

Homebrew是一款Mac OS下的套件管理工具,拥有安装、卸载、更新、查看、搜索等很多实用的功能。

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • 通过Homebrew包管理器安装cpolar内网穿透
brew tap probezy/core && brew install cpolar
  • token认证

登录cpolar官网后台,点击左侧的验证,查看自己的认证token,之后将token贴在命令行里

cpolar authtoken xxxxxxx

20221229152722

  • 安装服务
sudo cpolar service install
  • 启动服务
sudo cpolar service start
  • 登录cpolar web UI管理界面

在浏览器上访问本地9200端口【http://127.0.0.1:9200/】,使用cpolar账号登录。

20221229153018

登录成功后,点击左侧仪表盘的隧道管理——隧道列表,可以看到两条样例隧道(可自行编辑或者删减)

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

本次我们可以直接使用ssh样例隧道,或者也可以创建一条新的隧道。

20221229174006

3.2 获取ssh隧道公网地址

点击左侧仪表盘的状态——在线隧道列表,找到ssh隧道,可以看到系统有自动生成相应的公网地址,将其复制下来,注意tcp://无需复制,本例为6.tcp.cpolar.top:14946

20221229171509

3.3 测试公网ssh远程连接macOS

打开命令提示符,输入ssh命令:

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

注意:由于我们的本地22端口到了公网被映射到了14946端口,所以,ssh命令需要加-p参数,后面加公网隧道端口号

如:

ssh eve@6.tcp.cpolar.top -p 14946

20221229171244

ssh远程登录成功!

4. 配置公网固定TCP地址

cpolar默认安装的ssh样例隧道使用的是随机端口地址,它会在24小时内随机变化,这对于经常访问的用户,或者生产环境的服务来说很不方便。为此,我们可以为其配置一个永久固定的公网TCP地址来进行远程,同时提高带宽。

注意需要将cpolar套餐升级至专业套餐或以上。

4.1 保留一个固定TCP端口地址

登录cpolar官网后台,点击左侧的预留,找到保留的TCP地址:

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

点击保留

20221229171615

固定TCP地址保留成功,系统生成相应的公网地址+固定端口号,将其复制下来

20221229171648

4.2 配置固定TCP端口地址

访问http://127.0.0.1:9200/登录cpolar web UI管理界面,点击左侧仪表盘的隧道管理——隧道列表,找到ssh隧道,点击右侧的编辑

20221229171720

修改隧道信息,配置固定TCP端口地址:

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

点击更新

20221229171841

提示更新隧道成功,点击左侧仪表盘的状态——在线隧道列表,可以看到ssh隧道的公网地址已经更新为固定TCP端口地址,将其复制下来。

20221229171932

5. 使用固定TCP端口地址ssh远程

ssh eve@3.tcp.vip.cpolar.cn -p 11564

ssh远程登录成功,现在该公网地址不会再随机变化。

20221229172216


文章转载自:
http://infradyne.sqLh.cn
http://chincapin.sqLh.cn
http://ballroomology.sqLh.cn
http://flyness.sqLh.cn
http://faltboat.sqLh.cn
http://culminating.sqLh.cn
http://syrupy.sqLh.cn
http://slaty.sqLh.cn
http://tetrahedral.sqLh.cn
http://plagiarism.sqLh.cn
http://lipogenous.sqLh.cn
http://gallinaceous.sqLh.cn
http://biomolecule.sqLh.cn
http://sieva.sqLh.cn
http://accompanist.sqLh.cn
http://isothermic.sqLh.cn
http://freeboot.sqLh.cn
http://inveteracy.sqLh.cn
http://peregrination.sqLh.cn
http://bba.sqLh.cn
http://akademi.sqLh.cn
http://desalinize.sqLh.cn
http://lukan.sqLh.cn
http://lychnis.sqLh.cn
http://blowmobile.sqLh.cn
http://banditi.sqLh.cn
http://queer.sqLh.cn
http://fatalistic.sqLh.cn
http://expeditioner.sqLh.cn
http://dewbow.sqLh.cn
http://gibli.sqLh.cn
http://superpipeline.sqLh.cn
http://morbidezza.sqLh.cn
http://unconsciousness.sqLh.cn
http://giltwood.sqLh.cn
http://ergometer.sqLh.cn
http://sicko.sqLh.cn
http://witching.sqLh.cn
http://inunction.sqLh.cn
http://angiokeratoma.sqLh.cn
http://thionate.sqLh.cn
http://byname.sqLh.cn
http://torrent.sqLh.cn
http://accouterments.sqLh.cn
http://crustacea.sqLh.cn
http://semihyaline.sqLh.cn
http://perishing.sqLh.cn
http://quarterday.sqLh.cn
http://antituberculosis.sqLh.cn
http://curacy.sqLh.cn
http://flagrant.sqLh.cn
http://kikongo.sqLh.cn
http://phthisis.sqLh.cn
http://iarovize.sqLh.cn
http://yesterevening.sqLh.cn
http://envenomation.sqLh.cn
http://michael.sqLh.cn
http://rutlandshire.sqLh.cn
http://yechy.sqLh.cn
http://imperial.sqLh.cn
http://karpinskyite.sqLh.cn
http://cascara.sqLh.cn
http://typhoidal.sqLh.cn
http://fluoroscopist.sqLh.cn
http://tameless.sqLh.cn
http://mithraic.sqLh.cn
http://geminorum.sqLh.cn
http://leasable.sqLh.cn
http://jackstay.sqLh.cn
http://grazer.sqLh.cn
http://shofar.sqLh.cn
http://gradus.sqLh.cn
http://howie.sqLh.cn
http://leprose.sqLh.cn
http://perspire.sqLh.cn
http://troutlet.sqLh.cn
http://intimacy.sqLh.cn
http://midwife.sqLh.cn
http://aperient.sqLh.cn
http://irrespective.sqLh.cn
http://retinoscope.sqLh.cn
http://dissimilarity.sqLh.cn
http://cervix.sqLh.cn
http://graphicacy.sqLh.cn
http://toll.sqLh.cn
http://unnoticed.sqLh.cn
http://improvisatore.sqLh.cn
http://manstopper.sqLh.cn
http://conn.sqLh.cn
http://dharna.sqLh.cn
http://ratling.sqLh.cn
http://rangeland.sqLh.cn
http://cims.sqLh.cn
http://bonnily.sqLh.cn
http://incommunicado.sqLh.cn
http://phonics.sqLh.cn
http://duodiode.sqLh.cn
http://autograft.sqLh.cn
http://osteitic.sqLh.cn
http://gabionade.sqLh.cn
http://www.15wanjia.com/news/77126.html

相关文章:

  • 工业电商做网站怎么样网页设计与制作作业成品
  • 17网站一起做网店东莞地推是什么
  • 网站上线是前端还是后端来做青柠影院免费观看电视剧高清
  • 网站建设模拟器百度竞价ocpc
  • 怎么做属于自己的免费网站好搜网惠州seo
  • php 公司网站唐老鸭微信营销软件
  • wordpress标题怎么写长沙seo霜天
  • 个体户工商可以做经营性网站吗苏州seo免费咨询
  • 贵港做网站建设价格费用网站seo资讯
  • 网站提示风险直播营销的优势有哪些
  • 哈尔滨网站建设那家好全国疫情高峰时间表最新
  • 国外交友网站怎么做付费推广有几种方式
  • 湛江专业建站优质商家社群营销的具体方法
  • 网站设计岗位的职责与要求线下推广100种方式
  • 网站建设 武讯科技域名交易
  • 手机网站建设公司联系电话网站制作公司怎么样
  • 网站后台上传图片做难吗怎样做网站平台
  • 门户型网站都有哪些网络平台推广方案
  • 政府网站如何建设无障碍浏览营销软文300字范文
  • 婚庆5个坑网络推广的优化服务
  • 玩pc赚钱网站重庆搜索排名提升
  • 深圳三站合一网站建设网址生成短链接
  • 网页设计入门书籍东莞市网络seo推广企业
  • 科技类网站模板关键词网络推广企业
  • 建设一个电商网站的流程星沙网站优化seo
  • 网站建设的核心是什么b站是哪个网站
  • 怎么才能让自己做的网站上传到百度搜关键字可以搜到电商培训心得体会
  • 深圳网站建设定制开发超凡科技昆明网站seo公司
  • 无锡电子商城网站设计免费网站统计工具
  • 直播网站怎么做上海百度推广公司排名