Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

telnet a localhost [closed]

Tags:

linux

telnet

Hi I am trying to understand network command like ssh and telnet. Unfortunately I dont have any other system besides my own so I am testing with localhost only. while i am able to do ssh locally when I am trying to do telnet locally I am getting this error

Command I am trying is telnet localhost, I am not entering any port no.

Trying 127.0.0.1...

telnet: connect to address 127.0.0.1: Connection refused

Trying fe80::1...

telnet: connect to address fe80::1: Connection refused

telnet: Unable to connect to remote host

If I am able to do ssh locally, same should apply for telnet as well right?

like image 453
Dude Avatar asked Nov 15 '12 07:11

Dude


People also ask

Why telnet is not working in localhost?

In short, “telnet localhost 25 connection failed” error can occur due to SMTP service downtime, firewall restrictions, and so on.

How do I keep telnet session alive?

Wrap the telnet within an expect script that detects lack of input. It sends the escape sequence control-] to the telnet client to get the command prompt telnet> , and issues the command send nop (no-operation). I assume this is enough to keep the connection alive.


2 Answers

Apparently you don't have telnet server running locally, at your machine.

To have a look how telnet command works, you could do next:

telnet debra.dgbt.doc.ca

telnet example.com 80

like image 105
Oleksandr Kravchuk Avatar answered Sep 18 '22 01:09

Oleksandr Kravchuk


Install your Telnet server:

Control Panels/Turn Windows Features On/Off --> Telnet server

For ssh you can install freeSShd that is a free ssh daemon

like image 33
Carlos Landeras Avatar answered Sep 17 '22 01:09

Carlos Landeras