導航:首頁 > 操作系統 > linuxtelnet埠不通

linuxtelnet埠不通

發布時間:2022-12-25 00:29:36

1. linux的網關,ip,dns已經配置好,telnet服務就是在主機ping不通,埠也不

1、netstat -ntlp檢查埠
2、iptables -nvL檢查防火牆
vi /etc/sysconfig/iptables添加許可權
3、檢查selinux狀態
setenforce 0
getenforce

2. linux ping能通 telnet埠不通

查看telnet服務是否開啟
cat /etc/xinetd.d/telnet
disable = no
然後重啟xinetd的服務

3. telnet命令怎麼看埠通不通linux(如何測試telnet埠通不通)

1."telnet命令怎麼看埠通不通,為您提供telnet命令怎麼看埠通不通圖文信息,用telnet命令看埠通不通需要使用ping檢查伺服器網路輸入cmd,然後輸入pingip地址,根據超不超時來輸入telnet命令,TelnetIP地址及埠號,第三打開telnet連接成功窗口即可。

4. LINUX 為什麼telnet無法連接! telnet localhost 本地連接不上,被拒絕。 telnet,telnet-server,xinetd已裝

LINUX 中telnet無法連接是設置錯誤造成的,解決方法如下:

1、查看telnet 服務,chkcconfig -list查看, 多了telnet服務, 默認關閉。

5. linux埠不通怎麼排查

ping IP檢查網路連通性
telnet IP+埠檢查埠是否可訪問
traceroute IP檢查路由是否正常
iptables -nL檢查防火牆配置
tcpmp抓包用wireshark分析
基本就是這些工具了,一項項排查吧

6. 關於linux系統埠telnet能不能通的問題

你需要知道的是linux系統作為telnet伺服器無法使用的問題,那麼
檢查你的telnet服務,是否正常。 服務是否開放了23埠。
檢查你的linux防火牆配置規則
如果你使用的linux系統包含其他安全特性,也要仔細檢查一下。

7. 區域網內,能ping通但是telnet埠不通,這是怎麼回事

有防火牆,只允許PING,因為PING和TELNET是針對不同的埠,TELNET不通,一是對方的相關服務沒有啟來,再就是有防火牆阻攔;telnet能通,表示兩台計算機之間建立了連接通道。理論上是能ping通的,如果不能ping通,可能的原因是對方主機關閉了ping回顯,或者是對方的防火牆阻止了ping發送的數據包。

8. 兩台linux伺服器埠不通怎麼解決

准備環境

啟動一個web伺服器,提供埠.

?

1
2

[wyq@localhost ~]$ python -m SimpleHTTPServer 8080
Serving HTTP on 0.0.0.0 port 8080 ...

用其它web伺服器提供埠也一樣,由於python比較方便,這里就用它

1、使用telnet判斷

telnet是windows標准服務,可以直接用;如果是linux機器,需要安裝telnet.

用法: telnet ip port

1)先用telnet連接不存在的埠

?

1
2
3

[root@localhost ~]# telnet 10.0.250.3 80
Trying 10.0.250.3...
telnet: connect to address 10.0.250.3: Connection refused #直接提示連接被拒絕

2)再連接存在的埠

?

1
2
3
4
5
6
7
8

[root@localhost ~]# telnet localhost 22
Trying ::1...
Connected to localhost. #看到Connected就連接成功了
Escape character is '^]'.
SSH-2.0-OpenSSH_5.3
a
Protocol mismatch.
Connection closed by foreign host.

2、使用ssh判斷

ssh是linux的標准配置並且最常用,可以用來判斷埠嗎?

用法: ssh -v -p port username@ip

-v 調試模式(會列印日誌).

-p 指定埠

username可以隨意

1)連接不存在埠

?

1
2
3
4
5
6
7
8
9

[root@localhost ~]# ssh 10.0.250.3 -p 80
ssh: connect to host 10.0.250.3 port 80: Connection refused
[root@localhost ~]# ssh 10.0.250.3 -p 80 -v
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 10.0.250.3 [10.0.250.3] port 80.
debug1: connect to address 10.0.250.3 port 80: Connection refused
ssh: connect to host 10.0.250.3 port 80: Connection refused

2)連接存在的埠

?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

[root@localhost ~]# ssh ... -p
a
^]
^C
[root@localhost ~]# ssh ... -p -v
OpenSSH_.p, OpenSSL ..e-fips Feb
debug: Reading configuration data /etc/ssh/ssh_config
debug: Applying options for *
debug: Connecting to ... [...] port .
debug: Connection established.
debug: permanently_set_uid: /
debug: identity file /root/.ssh/identity type -
debug: identity file /root/.ssh/identity-cert type -
debug: identity file /root/.ssh/id_rsa type -
debug: identity file /root/.ssh/id_rsa-cert type -
debug: identity file /root/.ssh/id_dsa type -
debug: identity file /root/.ssh/id_dsa-cert type -
a
^C

不用-v選項也可以咯

3、使用wget判斷

wget是linux下的下載工具,需要先安裝.

用法: wget ip:port

1)連接不存在的埠

?

1
2
3

[root@localhost ~]# wget ...:
---- ::-- http://.../
Connecting to ...:... failed: Connection refused.

2)連接存在的埠

?

1
2
3
4

[root@localhost ~]# wget ...:
---- ::-- http://...:/
Connecting to ...:... connected.
HTTP request sent, awaiting response...

4、使用埠掃描工具

?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

[root@localhost ~]# nmap ... -p
Starting Nmap . ( http://nmap.org ) at -- : CST
Nmap scan report for ...
Host is up (.s latency).
PORT STATE SERVICE
/tcp closed http
MAC Address: B:A::CF:FD:D (Unknown)
Nmap done: IP address ( host up) scanned in . seconds
[root@localhost ~]# nmap ... -p
Starting Nmap . ( http://nmap.org ) at -- : CST
Nmap scan report for ...
Host is up (.s latency).
PORT STATE SERVICE
/tcp open http-proxy
MAC Address: B:A::CF:FD:D (Unknown)
Nmap done: IP address ( host up) scanned in . seconds
[root@localhost ~]# nmap ...
Starting Nmap . ( http://nmap.org ) at -- : CST
Nmap scan report for ...
Host is up (.s latency).
Not shown: closed ports
PORT STATE SERVICE
/tcp open ssh
/tcp open rpcbind
/tcp open http-proxy
/tcp open unknown
MAC Address: B:A::CF:FD:D (Unknown)
Nmap done: IP address ( host up) scanned in . seconds

總結

提供埠服務,則使用了tcp協議,上面是以web伺服器為例。如果伺服器是更簡單的tcp伺服器,三個工具同樣適用.

三個工具的共同點是:1.以tcp協議為基礎;2.能訪問指定埠. 遵循這兩點可以找到很多工具.
一般在windows下使用telnet比較方便,linux下個人就比較喜歡用wget.

閱讀全文

與linuxtelnet埠不通相關的資料

熱點內容
公路商店app標簽選什麼 瀏覽:335
linuxoracle命令行登錄 瀏覽:224
android深度休眠 瀏覽:169
php微信開發例子 瀏覽:843
醫得app登錄密碼是什麼 瀏覽:140
spring開發伺服器地址 瀏覽:411
伺服器上如何查看伺服器的埠 瀏覽:678
單片機伺服器編譯 瀏覽:770
單口usb列印機伺服器是什麼 瀏覽:859
戰地五開伺服器要什麼條件 瀏覽:956
在word中壓縮圖片大小 瀏覽:255
javatomcat圖片 瀏覽:419
程序員生產智能創意 瀏覽:67
匯和銀行app怎麼登錄 瀏覽:383
騰訊伺服器如何上傳源碼 瀏覽:748
單片機的原理概述 瀏覽:512
火控pdf 瀏覽:269
如何復制雲伺服器centos環境 瀏覽:988
債權pdf 瀏覽:307
紅色番字的app怎麼下載 瀏覽:877