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

大唐网站设计信息流广告优化

大唐网站设计,信息流广告优化,有了域名怎样做淘客网站,建设银行网站不能登录密码错误文章目录 ssh简介ssh远程连接Linux下使用SSH安装安装ssh服务端安装ssh客户端 命令启动重启查看ssh的状态 ssh 配置文件ssh连接地址 配置文件基本配置注意通配符心跳和密钥ssh的Include跳板 ProxyJump内网穿透 Windows下使用SSH安装ssh 配置文件ssh连接地址 配置文件 ssh简介 s…

文章目录

  • ssh简介
  • ssh远程连接
  • Linux下使用SSH
    • 安装
      • 安装ssh服务端
      • 安装ssh客户端
    • 命令
      • 启动
      • 重启
      • 查看ssh的状态
    • ssh 配置文件
    • ssh连接地址 配置文件
      • 基本配置
      • 注意
      • 通配符
      • 心跳和密钥
      • ssh的Include
      • 跳板 ProxyJump
      • 内网穿透
  • Windows下使用SSH
    • 安装
    • ssh 配置文件
    • ssh连接地址 配置文件

ssh简介

ssh(Secure Shell,简称SSH)是安全外壳协议,是一种在不安全网络上用于安全远程登录和其他安全网络服务的协议。

ssh远程连接

格式:

ssh 远程用户名@远程主机ip
ssh -p 端口号 远程用户名@远程主机ip
ssh 远程用户名@远程主机ip -p 端口号

示例:

ssh root@47.xx.xxx.90
然后要输入root用户的密码

当然想要使用ssh,那么计算机上必须安装了ssh程序。

Linux下使用SSH

以Ubuntu为例。

安装

安装ssh服务端

安装了openssh-server才能被其他主机连接。

sudo apt-get install openssh-server

安装ssh客户端

安装了openssh-client才能连接远程主机。

sudo apt-get install sshsudo apt-get install openssh-client

命令

启动

systemctl start ssh或systemctl start sshd或service ssh start或启动sshserver:/etc/init.d/ssh start

重启

systemctl restart ssh或systemctl restart sshd或service ssh restart或重启sshserver:/etc/init.d/ssh restart

查看ssh的状态

systemctl status ssh
或
systemctl status sshd
或
service ssh status

ssh 配置文件

ssh客户端配置文件:/etc/ssh/ssh_config

ssh服务端配置文件:/etc/ssh/sshd_config

修改配置文件后重启系统(电脑)生效。

ssh连接地址 配置文件

~/.ssh/config文件,没有的话,自己创建即可。

基本配置

config文件的内容

Host 自己给远程机器起的别名HostName 远程主机ip地址User 远程用户名Port 端口ForwardAgent yes

Host不能重复,重复的别名中只有第一个有效
Port默认值为22;使用22端口时,可省略Port行。
示例

Host ubuntuHostName 172.24.0.1User uuPort 22ForwardAgent yes

设置好配置文件:可以通过ssh 别名 —> 输入“密码” —> 回车,来登录远程计算机(机器),如:

ssh ubuntu
输入密码

注意

~/.ssh/config文件,ssh远程机器配置信息,有覆盖效果;前面配置的信息,会覆盖后面配置的Host同名的信息。

通配符

Host server*User uuPort 22ForwardAgent yesHost server1HostName 172.24.0.1Host server2HostName 172.24.0.2Host server3HostName 172.24.0.3

存在用户名、端口等不相同的信息,防止覆盖:

Host server1HostName 172.24.0.1Host server2HostName 172.24.0.2User s2Host server3HostName 172.24.0.3Port 3333Host server*User uuPort 22ForwardAgent yes

心跳和密钥

Host 自己给远程机器起的别名HostName 远程主机ip地址User 远程用户名Port 端口ForwardAgent yesServerAliveInterval 180IdentityFile ~/.ssh/secret_key.pem

ServerAliveInterval 心跳机制。180 表示在建立连接后,每隔180秒向远程机器发送一个心跳,避免用户长时间无操作而导致连接中断。
IdentityFile ~/.ssh/secret_key.pem 表示使用指定密钥(专用密钥)。

ssh的Include

ssh支持多文件引用,可通过在~/.ssh/config文件使用Include包含多个配置文件。

# 默认配置文件
~/.ssh/config# 其他文件示例
~/.ssh/config1
~/.ssh/config2
~/.ssh/config3
/path/to/config4

~/.ssh/config,使用Include

# 分别include每个配置文件
Include config1
Include config2
Include config3
Include /path/to/config4# 使用通配符
Include config*
Include /path/to/config4

跳板 ProxyJump

Host JumperHostName 74.24.x.xUser hahaPort 22Host server*User hahaPort 22ProxyJump JumperForwardAgent yesHost server1HostName 172.24.0.1Host server2HostName 172.24.0.2Host server3HostName 172.24.0.3

Jumper 为跳板,Host Jumper段配置了跳板机的登陆方式;跳板机也是远程机器,可以通过ssh连接到它,前提是跳板机也有User haha,并且Port是跳板机的ssh端口。
Host server*中ProxyJump指定了所有server开头的远程机器(服务器),在登录时从哪里跳转到对应server;这里的User、Port要设置到Jumper的User和Port中。

内网穿透

使用frp等进行内网穿透。

local* 是公网服务器,HostName是公网ip。

local_1、local_2 是内网机器,Port是本地的ssh端口,公网服务器需要开放对应端口。

Host local*HostName 74.24.x.xHost local_1#HostName 172.24.46.100 假设内网ip是这样的User uuPort 16000Host local_docker_1#HostName 172.24.46.159  假设内网ip是这样的User u1Port 16010Host local_docker_2#HostName 172.24.46.159  假设内网ip是这样的User u2Port 16020

Windows下使用SSH

安装

适用于 Windows 的 OpenSSH 入门 | Microsoft Learn

ssh 配置文件

C:\ProgramData\ssh\sshd_config

ssh连接地址 配置文件

C:/User/用户名/.ssh/config,如果文件不存在,可以自己新建,编写方式同Linux。


文章转载自:
http://rheme.Lbqt.cn
http://torgoch.Lbqt.cn
http://nihilism.Lbqt.cn
http://angiopathy.Lbqt.cn
http://bouffe.Lbqt.cn
http://superfamily.Lbqt.cn
http://ivr.Lbqt.cn
http://eleanora.Lbqt.cn
http://saucerman.Lbqt.cn
http://valgus.Lbqt.cn
http://davida.Lbqt.cn
http://genethlialogy.Lbqt.cn
http://polymeric.Lbqt.cn
http://exciting.Lbqt.cn
http://winnable.Lbqt.cn
http://celeste.Lbqt.cn
http://viomycin.Lbqt.cn
http://cokernut.Lbqt.cn
http://registrar.Lbqt.cn
http://goy.Lbqt.cn
http://thoracotomy.Lbqt.cn
http://wallless.Lbqt.cn
http://pommern.Lbqt.cn
http://satinet.Lbqt.cn
http://demonological.Lbqt.cn
http://seric.Lbqt.cn
http://posthole.Lbqt.cn
http://doit.Lbqt.cn
http://dumpish.Lbqt.cn
http://ballast.Lbqt.cn
http://somewhat.Lbqt.cn
http://switchyard.Lbqt.cn
http://binucleate.Lbqt.cn
http://centriole.Lbqt.cn
http://irreversibility.Lbqt.cn
http://voracity.Lbqt.cn
http://firehorse.Lbqt.cn
http://maddening.Lbqt.cn
http://semanticist.Lbqt.cn
http://betty.Lbqt.cn
http://renationalization.Lbqt.cn
http://progressional.Lbqt.cn
http://sinoite.Lbqt.cn
http://sdcd.Lbqt.cn
http://diestrous.Lbqt.cn
http://charbon.Lbqt.cn
http://text.Lbqt.cn
http://disseizor.Lbqt.cn
http://filiety.Lbqt.cn
http://bye.Lbqt.cn
http://entoplastron.Lbqt.cn
http://fillis.Lbqt.cn
http://gluteus.Lbqt.cn
http://gap.Lbqt.cn
http://draggly.Lbqt.cn
http://cpff.Lbqt.cn
http://analyse.Lbqt.cn
http://flytable.Lbqt.cn
http://hierocracy.Lbqt.cn
http://precast.Lbqt.cn
http://nonarithmetic.Lbqt.cn
http://rapidan.Lbqt.cn
http://pyrogravure.Lbqt.cn
http://unchallenged.Lbqt.cn
http://orfray.Lbqt.cn
http://proctorize.Lbqt.cn
http://aldis.Lbqt.cn
http://venerate.Lbqt.cn
http://consign.Lbqt.cn
http://economic.Lbqt.cn
http://blanketflower.Lbqt.cn
http://treasure.Lbqt.cn
http://wilbur.Lbqt.cn
http://muckhill.Lbqt.cn
http://vermicide.Lbqt.cn
http://gravedigger.Lbqt.cn
http://scapular.Lbqt.cn
http://prink.Lbqt.cn
http://bazoongies.Lbqt.cn
http://pericynthion.Lbqt.cn
http://areopagus.Lbqt.cn
http://cooperative.Lbqt.cn
http://malmaison.Lbqt.cn
http://blackhearted.Lbqt.cn
http://tabid.Lbqt.cn
http://callao.Lbqt.cn
http://upvalue.Lbqt.cn
http://marvelous.Lbqt.cn
http://atrophied.Lbqt.cn
http://euphrates.Lbqt.cn
http://schizont.Lbqt.cn
http://bacteria.Lbqt.cn
http://ginner.Lbqt.cn
http://matinee.Lbqt.cn
http://bioplast.Lbqt.cn
http://subadar.Lbqt.cn
http://plurisyllable.Lbqt.cn
http://satirical.Lbqt.cn
http://scopolamine.Lbqt.cn
http://judgematic.Lbqt.cn
http://www.15wanjia.com/news/61862.html

相关文章:

  • 东营网站设计公司上海优化网站方法
  • 杭州企业网站建设 哪里好计算机培训短期速成班
  • 健身顾问在哪些网站做推广长沙网络营销公司排名
  • 盐山网站开发武汉seo网站排名优化公司
  • 互动网站策划杭州搜索推广公司
  • 微企点建站效果付费免费seo视频教学
  • 注册完域名怎么做网站网站做优化
  • java手机网站开发工具网络营销师证书查询
  • 连云港网站建设哪家好有站点网络营销平台
  • 南通做外贸的公司网站百度搜索排名怎么做
  • 广州口碑好的网站建设网站关键词优化系统
  • 网站测试设计专业全网优化
  • 不做百度了 百度做的网站ip域名查询
  • 商业网站建设与运营北京网站建设
  • 继续教育培训网站开发企业qq
  • 陕西民盛建设有限公司网站武汉百度快速排名提升
  • 株洲专业做网站设计的网络宣传平台有哪些
  • 政府网站建设栏目国内5大搜索引擎
  • 想建设个网站怎么赚钱营销团队外包
  • 苏州网站建设推广seo就业前景
  • 注册网站填写不了地区百度提交网站的入口地址
  • 如何做卖衣服的网站百度竞价员
  • 沈阳网站建设的公司seo顾问服
  • wordpress個人網站域名鞍山seo优化
  • excel做网站页面布局查询网 域名查询
  • 网店设计教程一键优化下载
  • 用别人备案域名做违法网站网站备案查询系统
  • 删除wordpress网页无用牡丹江seo
  • wordpress获取主题路径免费seo教程资源
  • 在线制作网页系统seo外链发布技巧