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

古镇网站建设衡水网站建设优化推广

古镇网站建设,衡水网站建设优化推广,外贸定制网站,科右前旗建设局网站linux 系统验证端口连通性 1、前提 Linux系统有时候需要测试某个端口的连通性#xff0c;然而ping命令只能测试某个IP通不通#xff0c;不能测试某端口的连通性。 因为ping命令是基于ICMP协议#xff0c;是计算机网络中的网络层的协议#xff0c;但是想要测试某个的连通…linux 系统验证端口连通性 1、前提 Linux系统有时候需要测试某个端口的连通性然而ping命令只能测试某个IP通不通不能测试某端口的连通性。 因为ping命令是基于ICMP协议是计算机网络中的网络层的协议但是想要测试某个的连通性需要用传输层的TCP/UDP协议。 2、方法 2.1、telnet命令 telnet命令为用户提供了在本地计算机上完成远程主机工作的能力因此可以通过telnet来测试端口的连通性 用法 telnet ip port2.1.1 开放的端口 [rootlocalhost /]# telnet 10.169.42.84 80 Trying 10.169.42.84... Connected to 10.169.42.84. Escape character is ^].此时命令未退出。 根据提示Escape character is ^].可知退出字符为^]CTRL]。此时输入其它字符不能使其退出CTRLC都不行。输入CTRL]后会自动执行进入命令模式 2.1.2 不开放的端口 [rootlocalhost /]# telnet 10.169.42.96 23 Trying 10.169.42.96... telnet: connect to address 10.169.42.96: Connection refused2.2、ssh 命令 用法 ssh -v -p port usernameip参数说明 v 调试模式(会打印日志) p 指定端口 username 远程主机的登录用户如root ip远程主机的IP地址2.2.1、开放的端口 [rootlocalhost log]# ssh -v -p 22 root192.168.6.208 OpenSSH_8.7p1, OpenSSL 3.0.1 14 Dec 2021 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config debug1: configuration requests final Match pass debug1: re-parsing configuration debug1: Reading configuration data /etc/ssh/ssh_config debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config debug1: Connecting to 192.168.6.208 [192.168.6.208] port 22. debug1: Connection established. debug1: identity file /root/.ssh/id_rsa type -1 debug1: identity file /root/.ssh/id_rsa-cert type -1 debug1: identity file /root/.ssh/id_dsa type -1 debug1: identity file /root/.ssh/id_dsa-cert type -1 debug1: identity file /root/.ssh/id_ecdsa type -1 debug1: identity file /root/.ssh/id_ecdsa-cert type -1 debug1: identity file /root/.ssh/id_ecdsa_sk type -1 debug1: identity file /root/.ssh/id_ecdsa_sk-cert type -1 debug1: identity file /root/.ssh/id_ed25519 type -1 debug1: identity file /root/.ssh/id_ed25519-cert type -1 debug1: identity file /root/.ssh/id_ed25519_sk type -1 debug1: identity file /root/.ssh/id_ed25519_sk-cert type -1 debug1: identity file /root/.ssh/id_xmss type -1 debug1: identity file /root/.ssh/id_xmss-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_8.7 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4 debug1: compat_banner: match: OpenSSH_7.4 pat OpenSSH_7.4* compat 0x04000006 debug1: Authenticating to 192.168.6.208:22 as root debug1: load_hostkeys: fopen /root/.ssh/known_hosts: No such file or directory debug1: load_hostkeys: fopen /root/.ssh/known_hosts2: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: curve25519-sha256 debug1: kex: host key algorithm: ssh-ed25519 debug1: kex: server-client cipher: aes256-gcmopenssh.com MAC: implicit compression: none debug1: kex: client-server cipher: aes256-gcmopenssh.com MAC: implicit compression: none debug1: kex: curve25519-sha256 need32 dh_need32 debug1: kex: curve25519-sha256 need32 dh_need32 debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: SSH2_MSG_KEX_ECDH_REPLY received debug1: Server host key: ssh-ed25519 SHA256:2GWzaDuCLIrTFPQClMFtw/dhwdcp3xAybNc0x8a89Sw debug1: load_hostkeys: fopen /root/.ssh/known_hosts: No such file or directory debug1: load_hostkeys: fopen /root/.ssh/known_hosts2: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory debug1: hostkeys_find_by_key_hostfile: hostkeys file /root/.ssh/known_hosts does not exist debug1: hostkeys_find_by_key_hostfile: hostkeys file /root/.ssh/known_hosts2 does not exist debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts does not exist debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts2 does not exist The authenticity of host 192.168.6.208 (192.168.6.208) cant be established. ED25519 key fingerprint is SHA256:2GWzaDuCLIrTFPQClMFtw/dhwdcp3xAybNc0x8a89Sw. This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])? 2.2.2 未开放的端口 [rootlocalhost /]# ssh -v -p 80 root10.169.42.96 OpenSSH_8.7p1, OpenSSL 3.0.1 14 Dec 2021 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config debug1: configuration requests final Match pass debug1: re-parsing configuration debug1: Reading configuration data /etc/ssh/ssh_config debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config debug1: Connecting to 10.169.42.96 [10.169.42.96] port 80. debug1: connect to address 10.169.42.96 port 80: Connection refused ssh: connect to host 10.169.42.96 port 80: Connection refused2.3、curl命令 curl是利用URL语法在命令行方式下工作的开源文件传输工具。也可以用来测试端口的连通性 url 是常用的命令行工具用来请求 Web 服务器。它的名字就是客户端client的 URL 工具的意思。 用法 curl ip:port参数说明 ip是测试主机的ip地址 port是端口比如80如果远程主机开通了相应的端口都会输出信息如果没有开通相应的端口则没有任何提示需要CTRLC断开 2.3.1、 开放的端口 [rootlocalhost /]# curl 192.168.6.150 7001 HTML HEAD TITLEError 404 - Not FoundTITLE BODY /BODY /HTML2.3.2 未开放的端口 [rootlocalhost /]# curl 192.168.6.201 28081 curl: (7)Failed connect to 192.168.6.201:28081; Connection refused
http://www.hkea.cn/news/14404637/

相关文章:

  • 个人网站介绍网站点击量设计
  • 查网站备案名称集团门户网站建设
  • 淘宝客网站如何做推广方案wordpress用户注册积分
  • 网站风格确定做双语网站多少钱
  • 盐城做网站的公司网红营销策略
  • 做网站需要融资十大后悔专业排行榜
  • 保定 网站建设软件开发建网站的目的
  • 建站软件有哪些功能如何做网站店铺的模板
  • 网站建设的过程化妆品网站系统规划
  • mc做弊端网站wordpress手册 chm
  • 网站建设注意内容上海金山区建设局网站
  • wordpress 资源站主题电子商务网站建设与维护 教材
  • 攀枝花建设工程有限责任公司网站网站建设初期 该如何推广
  • 仿网站上的焦点图叙述网站的设计制作流程
  • 如何将微信和企业网站同步简易软件开发工具
  • 网站开发定制合同范本wordpress 改成论坛
  • 易语言可以做api网站对接吗辽宁建设工程信息网项目经理变更
  • 上传网站到百度wordpress seo 主题
  • 藤县建设局网站做兼职什么网站比较好
  • 吉安市建设局施工管理站网站灌云县城乡建设局网站
  • 网站项目建设人员规划wordpress easy stmp
  • 信阳公司网站建设做无障碍浏览网站
  • 徐州丰县建设局网站中信建设有限责任公司项目人员配置
  • 解析网站dns自己做网站和推广
  • 漯河市源汇区网站建设软件开发属于什么专业
  • 做网站小代码大全网站源码如何保存
  • 电子商务网站建设试卷及答案专业外贸网站建设公司价格
  • 怎么写网站建设宣传家乡的网站
  • 二七区建设局网站wordpress可以做电影站
  • 深圳博纳网站建设英迈寰球网站建设