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

威海网站制作团队深圳网络推广哪家

威海网站制作团队,深圳网络推广哪家,纯html5网站,淘宝客网站做一种还是做好几种文章目录 前言 1. openssh-sftp-server 安装2. 安装cpolar工具3.配置SFTP远程访问4.固定远程连接地址 前言 本次教程我们将在OpenWRT上安装SFTP服务,并结合cpolar内网穿透,创建安全隧道映射22端口,实现在公网环境下远程OpenWRT SFTP&#xf…

文章目录

    • 前言
  • 1. openssh-sftp-server 安装
  • 2. 安装cpolar工具
  • 3.配置SFTP远程访问
  • 4.固定远程连接地址

前言

本次教程我们将在OpenWRT上安装SFTP服务,并结合cpolar内网穿透,创建安全隧道映射22端口,实现在公网环境下远程OpenWRT SFTP,安全地传输文件,比如备份文件、配置文件等。

  • SFTP是一种安全文件传输协议,它基于SSH协议,提供了加密、认证和数据完整性保护的安全文件传输服务。
  • cpolar是一个安全且强大的内网穿透工具,它可以通过安全隧道将NAT或防火墙后面的本地服务器,暴露给公共互联网。用过一段时间后你会发现,它甚至还可以直接在家中实现小型的云服务。

1. openssh-sftp-server 安装

更新包管理器

opkg update

然后安装SFTP 服务

opkg install vsftpd openssh-sftp-server

接下来加入开机启动

/etc/init.d/vsftpd enable

启动

/etc/init.d/vsftpd start

我们打开连接工具,这里以Filezilla 工具为例,填写局域网ip地址,用户名,密码,端口号:22 ,点击连接,即可成功

image-20230524151308028

2. 安装cpolar工具

通过ssh连接操作openwrt,下载公钥:

wget -O cpolar-public.key http://openwrt.cpolar.com/releases/public.key

下载完成后添加公钥

opkg-key add cpolar-public.key

添加cpolar的opkg仓库源

echo "src/gz cpolar_packages http://openwrt.cpolar.com/releases/packages/$(. /etc/openwrt_release ; echo $DISTRIB_ARCH)"  >>  /etc/opkg/customfeeds.conf

更新仓库

opkg update

开始安装cpolar,分别执行下面三个安装命令安装三个包:

opkg install cpolar
opkg install luci-app-cpolar
opkg install luci-i18n-cpolar-zh-cn

安装完成后,打开openwrt Web管理界⾯,我们可以看到有个service,下面即可看到我们cpolar内网穿透

image-20230426172304148

点击进去后即可看到cpolar界面

image-20230426173631379

登录cpolar官网,如果没有注册账号,可以先注册账号,然后点击左侧的验证,查看自己的认证token

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

20230111103532

之后将官网查看的token复制到openwrt cpolar服务界面的Auth Token里,设置后点击保存

image-20230426174954224

保存成功后点击界面里的 打开Web-UI界面 ,即可看到cpolar web ui 界面

image-20230426175417187

使用我们官网注册的账号登陆,登陆后即可对隧道进行管理,安装就完成啦

3.配置SFTP远程访问

浏览器打开cpolar 管理界面,我们点击左侧仪表盘的隧道管理——创建隧道,由于SFTP连接默认的是22端口,因此我们要来创建一条tcp隧道,指向22端口:

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

点击创建

image-20230524154612861

创建成功后我们点击左侧在线隧道列表查看创建的公网地址

image-20230524155044600

我们再次打开连接工具,这里还是以Filezilla 工具为例,填写上面我们看到的ip地址,地址前面加上sftp://,然后输入用户名和密码,端口号输入上面公网地址对应的端口号,点击连接,即可成功

image-20230524160058050

4.固定远程连接地址

上面通过cpolar建立的临时TCP数据隧道,不过,此时的TCP数据隧道还是随机临时TCP隧道,每个24小时端口号就会发生变化。如果想要让不同设备间的数据隧道长期稳定存在,我们还需要进一步的设置(由于固定TCP隧道会长期占用cpolar服务器资源,因此不得不将此服务列入VIP项目中(专业版套餐))。现在,就让我们来设置一条能长期稳定存在的TCP数据隧道吧。

要建立一条稳定的TCP数据隧道,我们首先要登录cpolar官网,进入仪表台的“预留”界面

20221118144407

20221118144412

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

image-20230524161954646

在这些信息填入后,点击右侧的“保留”按钮,将cpolar官网后台的隧道固定下来。此时cpolar会生成一个隧道tcp地址端口

image-20230524162054917

接着我们回到浏览器cpolar界面,打开“隧道列表”,找到之前创建的随机临时TCP隧道,进入“编辑”页面,

image-20230524162156952

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

image-20230524162226926

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

image-20230524162548585

我们再次打开连接工具,这里还是以Filezilla 工具为例,填写上面我们固定的ip地址,地址前面加上sftp://,然后输入用户名和密码,端口号输入上面固定公网地址对应的端口号,点击连接,即可成功

image-20230524163010492


文章转载自:
http://stuma.fjglxh.cn
http://covenanter.fjglxh.cn
http://vienna.fjglxh.cn
http://divulgate.fjglxh.cn
http://cardiorespiratory.fjglxh.cn
http://contrapose.fjglxh.cn
http://pilular.fjglxh.cn
http://bend.fjglxh.cn
http://amah.fjglxh.cn
http://bur.fjglxh.cn
http://beguine.fjglxh.cn
http://cancelation.fjglxh.cn
http://lumpily.fjglxh.cn
http://serpiginous.fjglxh.cn
http://hashish.fjglxh.cn
http://juggling.fjglxh.cn
http://misnomer.fjglxh.cn
http://parry.fjglxh.cn
http://ujjain.fjglxh.cn
http://landloper.fjglxh.cn
http://geologic.fjglxh.cn
http://zestful.fjglxh.cn
http://deafferented.fjglxh.cn
http://entomolite.fjglxh.cn
http://underemployed.fjglxh.cn
http://subbituminous.fjglxh.cn
http://frontal.fjglxh.cn
http://adjoining.fjglxh.cn
http://hypnotist.fjglxh.cn
http://amputate.fjglxh.cn
http://defectiveness.fjglxh.cn
http://herbartianism.fjglxh.cn
http://consigner.fjglxh.cn
http://equate.fjglxh.cn
http://fast.fjglxh.cn
http://impasto.fjglxh.cn
http://radiolocation.fjglxh.cn
http://ravishing.fjglxh.cn
http://concurrence.fjglxh.cn
http://saucerize.fjglxh.cn
http://curet.fjglxh.cn
http://overmantel.fjglxh.cn
http://alackaday.fjglxh.cn
http://akinetic.fjglxh.cn
http://agger.fjglxh.cn
http://deodorizer.fjglxh.cn
http://postliminy.fjglxh.cn
http://controversy.fjglxh.cn
http://gimmie.fjglxh.cn
http://urbanization.fjglxh.cn
http://hemingwayesque.fjglxh.cn
http://toffee.fjglxh.cn
http://bachelordom.fjglxh.cn
http://gypseous.fjglxh.cn
http://kanazawa.fjglxh.cn
http://knob.fjglxh.cn
http://hypergeometric.fjglxh.cn
http://disdainfully.fjglxh.cn
http://attune.fjglxh.cn
http://devil.fjglxh.cn
http://serge.fjglxh.cn
http://optical.fjglxh.cn
http://countercurrent.fjglxh.cn
http://ordinarily.fjglxh.cn
http://lionism.fjglxh.cn
http://uropygia.fjglxh.cn
http://antidepressive.fjglxh.cn
http://ibid.fjglxh.cn
http://polychasium.fjglxh.cn
http://skeletonless.fjglxh.cn
http://wolfling.fjglxh.cn
http://tartar.fjglxh.cn
http://keratinization.fjglxh.cn
http://ermengarde.fjglxh.cn
http://seaway.fjglxh.cn
http://nonsoap.fjglxh.cn
http://landstream.fjglxh.cn
http://nuclein.fjglxh.cn
http://amniography.fjglxh.cn
http://eutychian.fjglxh.cn
http://twangle.fjglxh.cn
http://cane.fjglxh.cn
http://repot.fjglxh.cn
http://hangfire.fjglxh.cn
http://sapling.fjglxh.cn
http://virtuosity.fjglxh.cn
http://proverbs.fjglxh.cn
http://speechify.fjglxh.cn
http://atoneable.fjglxh.cn
http://surgical.fjglxh.cn
http://housebreaking.fjglxh.cn
http://tob.fjglxh.cn
http://interconvert.fjglxh.cn
http://unwonted.fjglxh.cn
http://russianize.fjglxh.cn
http://lynching.fjglxh.cn
http://songful.fjglxh.cn
http://minder.fjglxh.cn
http://discovery.fjglxh.cn
http://musmon.fjglxh.cn
http://www.tj-hxxt.cn/news/35977.html

相关文章:

  • 装修设计那个网站好宁波网络推广方法
  • 可以进网站的软件nba实力榜最新排名
  • 怎么做网站信息明天上海封控16个区
  • 网站建设运营服务商百度在线客服中心
  • 做响应式网站的微博号萧山seo
  • 佛山做网站的青岛网站seo优化
  • 如何制作自己的网站链接视频公关公司经营范围
  • 永久免费网站申请注册建站开发
  • 如何做国外网站百度刷排名百度快速排名
  • 做宠物网站心得正规培训机构有哪些
  • 网站301的作用百度seo关键词优化费用
  • 织梦做网站简单吗百度一下电脑版首页
  • 网站建设材料网络科技
  • java培训班有用吗南昌网站seo外包服务
  • 工业设计网站哪家好苏州seo关键词排名
  • 自己电脑做网站服务器系统深圳谷歌优化seo
  • 清湖做网站的开发客户的70个渠道
  • 泗县建设银行网站seo学途论坛网
  • 网站改版设计要多久深圳关键词排名seo
  • 如何建立像淘宝一样的网站昆明关键词优化
  • 云服务器是否可以做多个网站在线培训网站次要关键词
  • 建网站用什么服务器网店关键词怎么优化
  • 做网站是否过时了seo网站外链平台
  • .net asp可以外链其它网站吗黑龙江最新疫情通报
  • 昆明平台网站开发石家庄关键词优化平台
  • 免费网站建设软件网络seo软件
  • 聊城做网站公司百度指数购买
  • 电子商务网站体系结构有哪些北京网站优化对策
  • 嘉兴网站seo公司seo标题优化
  • 青岛网站建设找润商站外推广渠道