Linux – telnet non interactive: connection closed by foreign host

connectionlinuxlinux-networkingtcptelnet

if I do

telnet host_ip port < /dev/null
Trying host_ip...
Connected to host_ip.
Escape character is '^]'.
Connection closed by foreign host.

By checking the wireshark, the client side sends tcp rst to the host side. Can anyone explain what happens exactly? Does telnet requires interactive mode?

Best Answer

Are you sure that TelNet service is running on linux machine? try this one

telnet localhost 23 (23 port of telnet)

or try to use netcat

Related Topic