SSH connection refused

Problem

I SSH to another Linux computer and get this error:

$ ssh joe@172.20.128.100
ssh: connect to host 172.20.128.100 port 22: Connection refused

Solution

Typically, there is no complicated reason of permissions why this failed. Since the OpenSSH client is almost always installed by default on Linux computers, people assume that the OpenSSH server is also installed. It is not and it gives this error!

Install the OpenSSH server on the host and you should be able to SSH to it:

$ sudo apt install openssh-server

Tried with: Ubuntu 14.04

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s