I want to know if it is necessary to have telnet enabled on both sides of machines to get telnet connection.
Here's the issue: I am trying to telnet some public IP on port 80 from a Linux web server (Red Hat).
This public IP has got HTTP (80) enabled on it. I'm not sure if telnet is enabled but the owner says it is.
On my Linux server, HTTP (80) is enabled but not telnet. Instead SSH is enabled.
When I telnet from my Linux server:
telnet PublicIP 80 it says:
Trying "PublicIP"... Connected to "PublicIP" ("PublicIP"). Escape character is '^]'. Connection closed by foreign host
Do is have to enable telnet on my server for it to work? Because there's no issue at the other end as confirmed by other sources. Public IP: 22.214.171.124
Please explain how can I make it work. If I have to enable telnet on my Linux server, please share the command and method to do so.