SSH Connection Refused, How to Troubleshoot?

SSH Connection Refused, How to Troubleshoot?

If you are looking for the solution to fix ssh Connection refused error.When you connect to your remote host using the ssh command as below.

#ssh [email protected]

You will get an error as,

ssh: connect to host myserver1 port 22: Connection refused

Here are the few reason behind the issue of “ssh Connection refused” and its solution.

Possibilities: You don’t have an SSH daemon running on your remote server or connection been blocked by firewall settings.

1. Depending on what distribution installed, you may need to install or run the ssh server, usually called openssh-server or sshd depending on your package manager.

2. Allow ssh port 22 on firewall to accept the connection from other server.

Related Content on Linux might be useful to you to improve your Linux Skills.

Keep practicing and have fun. Leave your comments if any.

Support Us: Share with your friends and groups.

Stay connected with us on social networking sites, Thank you.