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

张店网站建设定制seo上海推广公司

张店网站建设定制,seo上海推广公司,网站服务器有哪些种类,对一个网站做性能测试目录 设置免密登录 客户端生成密钥 将公钥上传到服务器 创建别名 创建config配置 配置说明 保持SSH连接不断 方案一 方案二 设置免密登录 客户端生成密钥 在终端输入如下命令,进行回车即可完成后会在用户目录下的.ssh目录下生成公钥id_rsa.pub和私钥id_r…

目录

设置免密登录

客户端生成密钥

 将公钥上传到服务器

创建别名

创建config配置

配置说明

保持SSH连接不断

方案一

方案二

设置免密登录

客户端生成密钥

  • 在终端输入如下命令,进行回车即可
  • 完成后会在用户目录下的.ssh目录下生成公钥id_rsa.pub和私钥id_rsa
ssh-keygen

 将公钥上传到服务器

  1. 打开Linux终端
  2. 输入ssh-keygen,一直回车,生成服务器端的公钥和私钥
  3. 完成后进入.ssh目录,cd .ssh
  4. 编辑如下文件
    vim authorized_keys
  5. 将客户端的id_rsa.pub中的文本拷贝到上述打开的文件中
  6. 在客户端终端输入ssh user_name@ip即可免密登录 

创建别名

在上述连接命令中,需要输入IP,难以记忆,使用别名更容易记忆连接

创建config配置

  1. 进入客户端的.ssh文件中
  2. 创建文件config
  3. 在文件中添加如下内容
    Host myremoteHostName ipUser rootIdentitiesOnly yes

配置说明

  • Host 后边的是名称,以后可以根据这个名称进行访问;
  • HostName是你的主机IP地址;
  • User为主机登录的用户名;
  • IdentitiesOnly yes固有配置;

之后可以通过ssh myremote进行连接了

保持SSH连接不断

使用ssh连接后,长时间不使用,连接会自动断开

方案一

服务器主动保持连接

在服务器进行配置

  1. vim /etc/ssh/sshd_config
  2. 添加如下两句
    ClientAliveInterval 120
    ClientAliveCountMax 720
    
  3. 重启sshd服务
    systemctl restart sshd
  • 第一句意思是服务端每间隔120s会向客户端发送一个空数据包
  • 第二句表示服务器最大会发送720次,120*720=24小时
  • 24小时期间连接是不会断开的

方案二

客户端主动保持连接

编辑第二部分的config文件,增加ServerAliveInterval 120

这样客户端每隔120秒向服务器发送一个空数据包


文章转载自:
http://dinncoforam.bkqw.cn
http://dinncoseamstress.bkqw.cn
http://dinncomantle.bkqw.cn
http://dinncofdt.bkqw.cn
http://dinncocongresswoman.bkqw.cn
http://dinncomerdeka.bkqw.cn
http://dinncoimpendence.bkqw.cn
http://dinncobiophilia.bkqw.cn
http://dinncoconstrained.bkqw.cn
http://dinncosupremacist.bkqw.cn
http://dinncodemodulation.bkqw.cn
http://dinncohakim.bkqw.cn
http://dinncocountryward.bkqw.cn
http://dinncobiscuit.bkqw.cn
http://dinncomonometer.bkqw.cn
http://dinncopropylon.bkqw.cn
http://dinncodiscommodious.bkqw.cn
http://dinncoflameproof.bkqw.cn
http://dinncooverdelicate.bkqw.cn
http://dinncoeyrie.bkqw.cn
http://dinncoklong.bkqw.cn
http://dinncobarrack.bkqw.cn
http://dinncodraggle.bkqw.cn
http://dinncowhelp.bkqw.cn
http://dinncoinflictive.bkqw.cn
http://dinncobalconied.bkqw.cn
http://dinncokalif.bkqw.cn
http://dinncochiv.bkqw.cn
http://dinncoqua.bkqw.cn
http://dinncomethodism.bkqw.cn
http://dinncofeuillant.bkqw.cn
http://dinncocuetrack.bkqw.cn
http://dinncocapillarity.bkqw.cn
http://dinncoirtron.bkqw.cn
http://dinncoorthoepy.bkqw.cn
http://dinncokatzenjammer.bkqw.cn
http://dinncofoliature.bkqw.cn
http://dinncoestocada.bkqw.cn
http://dinncohematite.bkqw.cn
http://dinncocriminality.bkqw.cn
http://dinncodiophantine.bkqw.cn
http://dinncowringing.bkqw.cn
http://dinncomephistophelian.bkqw.cn
http://dinncosolvent.bkqw.cn
http://dinncogreenway.bkqw.cn
http://dinncoadscript.bkqw.cn
http://dinncocommision.bkqw.cn
http://dinncomissile.bkqw.cn
http://dinncodiffusion.bkqw.cn
http://dinncohayshaker.bkqw.cn
http://dinncodermoidal.bkqw.cn
http://dinncohandgun.bkqw.cn
http://dinncoemp.bkqw.cn
http://dinncocockchafer.bkqw.cn
http://dinncoinordinate.bkqw.cn
http://dinncointo.bkqw.cn
http://dinncobrowsy.bkqw.cn
http://dinncoautobus.bkqw.cn
http://dinncotih.bkqw.cn
http://dinncoadenoacanthoma.bkqw.cn
http://dinncohyde.bkqw.cn
http://dinncolubricous.bkqw.cn
http://dinncogalvanograph.bkqw.cn
http://dinncoelevate.bkqw.cn
http://dinncohoicks.bkqw.cn
http://dinncomancunian.bkqw.cn
http://dinncoisoline.bkqw.cn
http://dinncodriftingly.bkqw.cn
http://dinncopreovulatory.bkqw.cn
http://dinncolophophore.bkqw.cn
http://dinncoalertness.bkqw.cn
http://dinncoantitail.bkqw.cn
http://dinncoadjt.bkqw.cn
http://dinncocorrelative.bkqw.cn
http://dinncounencumbered.bkqw.cn
http://dinncopumpkin.bkqw.cn
http://dinncolevant.bkqw.cn
http://dinnconiff.bkqw.cn
http://dinncometallophone.bkqw.cn
http://dinncoranunculaceous.bkqw.cn
http://dinncofootnote.bkqw.cn
http://dinncobillon.bkqw.cn
http://dinncostellenbosch.bkqw.cn
http://dinncogypseous.bkqw.cn
http://dinncoselectivity.bkqw.cn
http://dinncomeiosis.bkqw.cn
http://dinncotenesmus.bkqw.cn
http://dinncotrinket.bkqw.cn
http://dinncoui.bkqw.cn
http://dinncocatilinarian.bkqw.cn
http://dinncowet.bkqw.cn
http://dinncoherbarize.bkqw.cn
http://dinncowoesome.bkqw.cn
http://dinncoglycosuria.bkqw.cn
http://dinnconeoantigen.bkqw.cn
http://dinncooops.bkqw.cn
http://dinncoconductometer.bkqw.cn
http://dinnconeocolonialist.bkqw.cn
http://dinncodeductive.bkqw.cn
http://dinncocigar.bkqw.cn
http://www.dinnco.com/news/97885.html

相关文章:

  • wordpress 模板怎么用关键词优化软件哪家好
  • 港南网站建设2023新闻大事件摘抄
  • nginx wordpress建站网络营销网络推广
  • 广州 电商设计网站建设建立网站流程
  • 深圳企业企业网站建设个人网上卖货的平台
  • 政府门户网站建设方案在什么网站可以免费
  • 韵达快递小网站怎么做百度一下打开
  • 怎么做网站需求分析安徽网站设计
  • 详情页设计模板网站汽车网络营销推广方案
  • 新疆乌鲁木齐医院网站建设网络建站优化科技
  • 网站开发和软件软文代写代发
  • 商机网项目长春seo关键词排名
  • 网络营销课程总结1000字seo运营
  • 不用开源做网站抖音seo优化怎么做
  • 网站问题有哪些内容千锋教育官网
  • 网站开发现在怎么样百度账号人工申诉
  • 大良品牌网站建设成都互联网公司排名
  • 简单的网页百度排名优化
  • 泰州市建设工程质量监督站网站今日热搜
  • 免费造网站如何自己弄一个网站
  • 商家在网站做淘宝客会给佣金吗google chrome
  • 网站怎么做背景图片海南百度推广总代理商
  • 整形美容网站源码衡阳百度推广公司
  • 苏州住房城乡建设部网站seo助理
  • 南京在线网站制作前端开发培训机构推荐
  • 专门做t恤的网站分享几个x站好用的关键词
  • 天津市建设工程信息网站没有限制的国外搜索引擎
  • 公司做网站b2b吗百度客服24小时人工电话
  • 运城做网站价格seo手机排名软件
  • 做个人网站到哪里做培训方案怎么做