Telnet ошибка порт 23

The telnet command connects to the host you specify as the first argument on the port you specify as the second argument (or 23, if you only specify a single argument).

When you tried to execute telnet port, it tried to connect to the server port on port 23. Since there is no server with the address port (unless you specified it in your pc’s hosts file), telnet couldn’t connect to it.

I’m guessing the second command failed, because www.udacity.com doesn’t accept connections on port 8080 (the second argument of the command).

I don’t see any instructions in the link you provided.

EDIT: If you’re trying to connect to localhost, use telnet localhost (to connect to port 23) or telnet localhost <port> (replace <port> with the port you are trying to connect to).

Given that ssh works but telnet doesn’t, there are a few options:

  • A firewall is blocking the traffic on the server
  • Telnet is not running on the server
  • Your connections are routed through a gateway that filters out telnet traffic
  • You typed different ip addresses when you tried to connect via ssh / telnet

1. It could be your server’s firewall that’s blocking the connection.

As a quick check, add (temporary) rules to allow all the traffic:

[root@server]# iptables -I INPUT 1 -j ACCEPT
[root@server]# iptables -I OUTPUT 1 -j ACCEPT

You might as well do the same on the client to get that out of the way.
When you’re done testing (at the end of this message), remove these two with

[root@server]# iptables -D INPUT 1
[root@server]# iptables -D OUTPUT 1

2. Your server is missing a route for its 192.18.209.0/24 (?) subnet

Your server’s routing table is weird. You said its IP address was 192.18.209.124, but the routing table says it’s 192.18.212.124 . Did you change it to the 212 subnet to test some things? If so, can you revert it back to the state it was when you wrote your first message?

Do traceroutes from the server to the client and vice versa to check the paths are correct.

3. Full testing sequence, ONLY if you have a physical access to the server (as you might lose network access due to the potential ip change)

Assuming your topology is a very simple one with both machines on the same network as on the following diagram:

        +---------+                  Server: 192.18.209.124/24
        | Switch  |                  CentOS: 192.18.209.87 /24
        +---------+
     _____|     |_____
    |                 |
+--------+        +--------+
| Server |        | CentOS |
+--------+        +--------+

[root@server] iptables -I INPUT 1 -j ACCEPT
[root@server] iptables -I OUTPUT 1 -j ACCEPT
[root@server] ifconfig eth2 192.18.209.124/24
[root@server] netstat -tapn | grep :23

[root@centos] iptables -I INPUT 1 -j ACCEPT
[root@centos] iptables -I OUTPUT 1 -j ACCEPT
[root@centos] traceroute 192.18.209.124
[root@centos] nc -vv 192.18.209.124 23

[root@server] traceroute 192.18.209.87
[root@server] iptables -D INPUT 1
[root@server] iptables -D OUTPUT 1

[root@centos] iptables -D INPUT 1
[root@centos] iptables -D OUTPUT 1

  • Remove From My Forums
  • Вопрос

  • Здравствуйте. У меня Windows 7. Установил клиент Телнет. Он нормально запускается, но при попытке подключится к какому нибудь аипишнику пишет «Не удалось открыть подключение к этому узлу на порт [80] сбой подключения». Пробовал разные адреса и через разные
    порты. Кто знает как его «вылечить»? Ну или меня?

    • Изменено

      3 февраля 2011 г. 7:49
      Опечатка

Ответы

  • «Не удалось открыть подключение к этому узлу на порт [80] сбой подключения». Пробовал разные адреса и через разные порты. Кто знает как его «вылечить»? Ну или меня?

    Лечить нужно сеть — firewall’ы… имейте ввиду — telnet не работает с прокси-серверами

    • Предложено в качестве ответа
      AndricoRusEditor
      11 февраля 2011 г. 8:12
    • Помечено в качестве ответа
      Yuriy Lenchenkov
      14 февраля 2011 г. 14:07

Updated: 05/04/2019 by

Wi-Fi symbol

Telnet is a legacy protocol for remotely connecting to a networked computer. If you’re having trouble connecting to a remote computer with your Telnet client, the following steps may help you troubleshoot the problem.

Note

Telnet is not encrypted, and is considered insecure. Anyone listening to your network traffic can intercept the information, including passwords, communicated over a Telnet connection. If possible, use SSH instead. Contact the administrator of the remote computer to inquire about the possibility of using SSH instead of Telnet. Or, if you are the administrator of the remote computer, we strongly recommend you install and use a free SSH server, such as OpenSSH.

Bad network address

If you’re having trouble connecting with Telnet, first, verify the address you are attempting to telnet to is valid. One way you can verify that the address is valid and active is by pinging the computer or device. If you cannot ping the address, the address is wrong or you have network settings prohibiting you from getting to that address.

Verify the port you are using is correct. By default, the telnet port should be 23. However, some network administrators or users may change the telnet port to a different address for security reasons.

Telnet port 23 not open on remote computer or device

By default, many operating systems disable port 23 and telnet access on a computer. For you to telnet to a computer, that port must be open and the telnet service must be enabled on the computer.

Note

Port 23 may be disabled because of security reasons. Telnet is unsecure and passes all information including username and password as plaintext. If port 23 is closed, try using SSH instead of Telnet.

Permission settings prohibiting telnet

Verify you have the permissions to telnet from your computer over the network and to another computer. Verify no firewalls between you and the computer or device you tried connecting to are being blocked. Also, verify telnet service is enabled on both computers.

50 / 40 / 5

Регистрация: 30.06.2010

Сообщений: 1,191

1

09.05.2012, 08:44. Показов 108970. Ответов 15


Студворк — интернет-сервис помощи студентам

На компе, к которому подключаюсь стоит win 7 с включенным telnet — сервером и клинетом.
на компе, с которого подключаюсь стоит win 7 с включенным telnet — клиентом.
захожу в cmd=>telnet=>o [IP-address] 23
и мне пишет «Не удалось открыть подключение к этому узлу, на порт 23: Сбой подключения.»

Подскажиет, что я не правильно делаю?



0



Эксперт С++

7175 / 3234 / 81

Регистрация: 17.06.2009

Сообщений: 14,164

09.05.2012, 20:02

2

Есть ли прямой маршрут от одного компа и обратно ?
Возможно Firewall мешает подключению



0



50 / 40 / 5

Регистрация: 30.06.2010

Сообщений: 1,191

09.05.2012, 20:57

 [ТС]

3

брандмауер отключен
пытался и на 127.0.0.1 подключиться, то же самое



0



Эксперт С++

7175 / 3234 / 81

Регистрация: 17.06.2009

Сообщений: 14,164

10.05.2012, 12:09

4

«netstat -an» что показывает ?
там вообще telnet-сервер находится в состоянии LISTEN на 23 порту ?



0



50 / 40 / 5

Регистрация: 30.06.2010

Сообщений: 1,191

10.05.2012, 12:26

 [ТС]

5

23 порт не показывает. Что делать?



0



Эксперт С++

7175 / 3234 / 81

Регистрация: 17.06.2009

Сообщений: 14,164

10.05.2012, 14:04

6

Это значит что ты нагло врешь в пункте

стоит win 7 с включенным telnet — сервером и клинетом

Нету у тебя сервера telnet !



0



50 / 40 / 5

Регистрация: 30.06.2010

Сообщений: 1,191

10.05.2012, 19:43

 [ТС]

7

Я про это говорил.

Миниатюры

Удалённое подключение через telnet
 



0



Эксперт С++

7175 / 3234 / 81

Регистрация: 17.06.2009

Сообщений: 14,164

10.05.2012, 19:52

8

Ты комп перезагружал ?
Можно быть служба telnet просто не запущена по умолчанию ?

Зачем тебе вообще telnet, когда есть remote desktop ?



0



50 / 40 / 5

Регистрация: 30.06.2010

Сообщений: 1,191

10.05.2012, 20:55

 [ТС]

9

Хочу научиться через телнет, это может пригодиться.
перезагружал.
как её запустить поумоланию?



0



680 / 330 / 5

Регистрация: 01.03.2010

Сообщений: 1,387

11.05.2012, 15:44

10

Цитата
Сообщение от ProstoMad
Посмотреть сообщение

Хочу научиться через телнет

не безопасно, не практично, морально устарело
лучше учите ssh — куда полезнее!



0



50 / 40 / 5

Регистрация: 30.06.2010

Сообщений: 1,191

11.05.2012, 17:25

 [ТС]

11

Может уде и не актуально, но всётаки уже хотелось бы до конца узнать.



0



Эксперт С++

7175 / 3234 / 81

Регистрация: 17.06.2009

Сообщений: 14,164

12.05.2012, 07:48

12

как её запустить поумоланию?

Administrative Tools -> Services

Добавлено через 16 секунд

не безопасно, не практично, морально устарело
лучше учите ssh — куда полезнее!

Это точно



3



8 / 8 / 2

Регистрация: 11.01.2013

Сообщений: 148

17.10.2016, 17:16

13

А как подключиться к localhost?



1



Модератор

Эксперт по компьютерным сетям

11103 / 6914 / 1870

Регистрация: 25.12.2012

Сообщений: 29,198

18.10.2016, 15:07

14

koto_fey, 127.0.0.1



0



8 / 8 / 2

Регистрация: 11.01.2013

Сообщений: 148

18.10.2016, 15:33

15

Лучший ответ Сообщение было отмечено Maks как решение

Решение

В обшем я разобрался.
Нужно как указано выше включить саму службу и сервер.
Потом добавить своего пользователя в группу ClientTelnet «Политика пользователей» и обязательно задать пароль пользователю.
Писать либо 127.0.0.1 либо просто localhost.



2



0 / 0 / 0

Регистрация: 12.11.2020

Сообщений: 1

12.11.2020, 17:53

16

Цитата
Сообщение от koto_fey
Посмотреть сообщение

В обшем я разобрался.
Нужно как указано выше включить саму службу и сервер.
Потом добавить своего пользователя в группу ClientTelnet «Политика пользователей» и обязательно задать пароль пользователю.
Писать либо 127.0.0.1 либо просто localhost.

А как добавить своего пользователя в группу ClientTelnet «политика пользователей»?



0



Понравилась статья? Поделить с друзьями:
  • Telemecanique altivar 31 ошибка rdy
  • Tekno black ops update ошибка
  • Tekla код ошибки 0
  • Teka ir 622 ошибка e5
  • Teka dw7 57 fi ошибка e4