Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

SSH connection refused

📅 2015-Oct-10 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ error, openssh, ssh ⬩ 📚 Archive


I SSH to another Linux computer and get this error:

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


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

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧