Budget-friendly, full-performance, fully equipped servers in any desired location.
ExploreBudget-friendly, full-performance, fully equipped servers in any desired location.
ExploreIf SSH access is not working, first check whether the connection reaches the server, then verify the user authentication, and finally inspect the SSH service on the server. On a shared hosting account, these settings may be limited to the provider’s control panel; on a VDS or managed server, you may need the administration panel and an existing console connection. Before making any change, save the current setting and change only one factor at a time.
This guide is intended for a Linux-based VDS, VPS, or a server where you have administrative access. The device from which you are trying to connect must have a terminal, the server’s IP address or domain name, the correct username, and the SSH port specified by the provider. The SSH port is the network gateway on which connections are accepted; if a port other than the default is used, it must be specified explicitly in the client.
If you use shared hosting, the service provider may have disabled SSH for your account, allowed only certain users, or restricted connections to a key configured through its own panel. In that case, instead of trying to change the server configuration file, check the SSH keys, access status, and connection details in the panel. On a provider-managed server, the provider’s web console, recovery console, or another authorized session provides a safe fallback point.
First, try connecting to the same target again with the same username and port information, and note the time of the error. A “connection timed out” or “connection refused” message occurs before authentication and requires you to examine the network path, firewall, incorrect port, or whether the SSH service is listening. “Permission denied” indicates that the server was reached, but the key or user information was not accepted.
If necessary, you can use the following diagnostic option in the terminal:
ssh -v username@server-address
Replace the username and server-address placeholders with your own information. This command displays details of the connection exchange in the local terminal; when sharing the output publicly, hide usernames, IP addresses, and key paths. For example, if the log remains at the “Connecting to...” stage, a network or port problem is more likely; if the key is rejected after “Offering public key,” an authentication problem is more likely. This output alone is not a definitive cause; it should be matched against the server logs.
For example, suppose a VDS administrator sees “connection refused” and finds no line in the server records for the time of the attempt. Changing the password or key is not the right first step. The administrator should first compare the port information in the panel with the external network rule; if a new attempt with the correct port appears in the records, the network path has been corrected. If no record is created, the provider-side access restriction should be investigated; only when a record shows that the request reached the server but was rejected should the administrator move on to the user or key settings.
In another situation, if the record clearly shows a failed public-key authentication for the correct user, changing the target port will not solve the problem. Compare the key offered by the client with the public key assigned to the same user on the server; if the keys do not match, correct only the relevant key through the panel or an authorized administration tool. Preserve the existing key before making the change, reconnect, and verify that the new record shows a successful login.
If the symptom changed after a setting was modified, return to the previous value you recorded to isolate the effect of the last change. If there is no other authorized session, provider console, or fallback access to the server, randomly restarting services, completely disabling the firewall, or broadening permissions is not safe. If the new records show that the problem is with the provider’s network, account policy, or server service, send the provider the error time, target used, and message; do not send a private key, password, or access token.
Your first next step should be to note the SSH port, enabled status, and permitted-user information in the panel you use; then make a single connection attempt and check the record for the same time period. These three pieces of information distinguish, in most setups, whether the problem occurs before the request reaches the server or during authentication. If you would also like to review the VDS option, you can visit the Turkey VDS server plans page.
Copyright © 2026 All Rights Reserved
