Unable to connect to 127.0.0.1

1

I have a new Ubuntu install where I am not able to connect to localhost or 127.0.0.1 or using my computer name.

telnet localhost [tried all/no port numbers]

returns

telnet: Unable to connect to remote host: Connection refused

Is there any configuration I need to do to make this work? Would it be disabled by default??

user1076371

Posted 2012-10-01T03:17:54.350

Reputation:

Answers

2

Are you sure telnetd is running?

sudo apt-get install telnetd

Roman Newaza

Posted 2012-10-01T03:17:54.350

Reputation: 171

telnet is working. – None – 2012-10-01T03:37:42.767

just wander what @pb2q changed in my post – Roman Newaza – 2012-10-01T03:39:25.837

@RomanNewaza you can click the edited ... ago to see the edit history of any post: I simply changed a typo: you had telned – pb2q – 2012-10-01T03:40:38.193

@user1076371: "telnet is working"?!? What about the "connection refused"?????? Please follow Roman Newaza's advice (which is good advice!), and please look at my link (of which "install telnetd" is a part). – paulsm4 – 2012-10-01T03:51:54.100

1

Q: Is "telnet" enabled?

If it isn't, or if your iptables firewall is configured to block telnet, then you'll get exactly this error :) Try "apt-get install telnetd".

And don't try to "telnet" except on your local LAN - it's NOT secure!!!! Always use SSH instead.

This link might help:

paulsm4

Posted 2012-10-01T03:17:54.350

Reputation: 1 510