telnet error even on new server


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

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

How can i disable the firewall ?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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:

  1. sudo ufw status

In case it’s enabled just allow:

  1. sudo ufw allow 23/tcp

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