beyhangl
By:
beyhangl

telnet error even on new server

December 12, 2016 614 views
Apache Deployment DNS Firewall IPv6 VPN Ubuntu

Hello,

I can't do telnet to any server or to my localhost.

->>telnet localhost 2181
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

How can i disable the firewall ?

1 Answer

Telnet is not enabled by default, neither is firewall.

If this is new server, you need to access it using SSH,
How To Connect To Your Droplet with SSH will show you how to do so.

Once you get into Droplet, you can find out how to install telnet, but:
WARNING: Telnet is insecure protocol and is not recommended to be used! All data you send to server using telnet (including passwords) are sent in plain-text form, unencrypted. SSH is encrypted and much more secure than telnet.

If you already logged in, installed telnet but you followed Initial set up tutorial (incl. Step 7), then you have enabled UFW firewall. To check is it enabled run:

  • sudo ufw status

In case it's enabled just allow:

  • sudo ufw allow 23/tcp

But if you didn't set up telnet manually, you need to do so (not recommended).

If you have recently created a DigitalOcean Droplet, and you are new to working with Linux servers, you will need to learn how to use SSH to connect to and manage it. SSH, which stands for Secure Shell, is an encrypted network protocol that is used to for, among other...
Have another answer? Share your knowledge.