It can happen that you encounter some difficulties to connect remotely (in SSH) on your managed server. When a server refuses the connection, a not always clear message is sent to you. This article will help you to clarify some of these messages and will help you with the steps to follow to be able to connect to your server.
It can happen that you encounter some difficulties to connect remotely (in SSH) on your managed server. When a server refuses the connection, a not always clear message is sent to you. This article will help you to clarify some of these messages and will help you with the steps to follow to be able to connect to your server.
Below, you will find some classic messages you may encounter with examples of solutions to fix the error.
Below, you will find some classic messages you may encounter with examples of solutions to fix the error.
« Timeout »
Error message
Explanation
This message indicates that your SSH connection software or SSH client did not receive a response from the server quickly enough. Most of the time this means that the firewall of the destination server does not allow your IP address to connect.
This message indicates that your SSH connection software or SSH client did not receive a response from the server quickly enough. Most of the time this means that the firewall of the destination server does not allow your IP address to connect.
Solution
Key refused
Error message
Explanation
The SSH key you are trying to connect with is not authorized to the user you are trying to connect with.
The SSH key you are trying to connect with is not authorized to the user you are trying to connect with.
Solution
Contact your hosting provider to authorize your SSH key. For more information, we invite you to read our dedicated tutorial article
Contact your hosting provider to authorize your SSH key. For more information, we invite you to read our dedicated tutorial article
« Connexion refused »
Error message
Explanation
This message means that the connection attempt of your SSH client has been refused by the server. There are several possibilities, here are the most frequent ones:
This message means that the connection attempt of your SSH client has been refused by the server. There are several possibilities, here are the most frequent ones:
Solution
In the first case, you should contact your IT manager to describe the problem. It is possible that the SSH server is not working, not well, or that you do not have the right connection information.
In the second case, the easiest thing to do is to wait about 15 minutes before trying again. If it still doesn't work, your infomanager will know how to correct the situation, so you should contact him and perform live connection tests.
In the first case, you should contact your IT manager to describe the problem. It is possible that the SSH server is not working, not well, or that you do not have the right connection information.
In the second case, the easiest thing to do is to wait about 15 minutes before trying again. If it still doesn't work, your infomanager will know how to correct the situation, so you should contact him and perform live connection tests.
Other
For any other error message, we advise you to contact your IT manager and send him a copy of the error message. If possible, try adding at least one level of verbosity (-v parameter of the SSH command) to give him more information.
For any other error message, we advise you to contact your IT manager and send him a copy of the error message. If possible, try adding at least one level of verbosity (-v parameter of the SSH command) to give him more information.
*Server admin: provider in charge of setting up, configuring and maintaining your computer server.
*Server admin: provider in charge of setting up, configuring and maintaining your computer server.