Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I try to telnet to one of my systems 172.16.xx.z from 172.16.xx.y, but the response i get is-

sudo telnet 172.16.xx.z

Trying 172.16.xx.z...

telnet: Unable to connect to remote host: Connection refused

Same for localhost-

sudo telnet localhost

Trying ::1...


telnet: Unable to connect to remote host: Connection refused

And the same experience with ssh:

sudo ssh 172.16.xx.z

ssh: connect to host 172.16.xx.z port 22: Connection refused

Any guesses what could be wrong here? Both my systems run on Ubuntu.

share|improve this question
up vote 1 down vote accepted

Why do you sudo ssh to connect? You can use ssh client in user mode!

To install ssh server on an Ubuntu box, run

sudo apt-get install openssh-server

Then ssh to that box should work. Telnet is not to be used over the internet due to lack of encryption.

share|improve this answer

The problem with telnet is that no one runs the telnet daemon on a modern Linux. As for ssh, make sure that sshd is installed and running, and that port 22 is appropriately open on the firewall.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .