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?
In short, “telnet localhost 25 connection failed” error can occur due to SMTP service downtime, firewall restrictions, and so on.
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.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With