X
X

Select Your Currency

₺ Türk Lirası $ US Dollar
X
X

Select Your Currency

₺ Türk Lirası $ US Dollar

A Safe Troubleshooting Guide When SSH Access Does Not Work

HomepageArticlesTechnical GuidesA Safe Troubleshooting Guide When S...

If SSH access does not work, first distinguish which environment you manage and whether the error occurs before a connection is established or during authentication. On shared hosting, the provider or hosting panel enables SSH access; on a managed server, you need to examine the account shell, connection port, firewall, and authentication logs. Before making any changes, record the current settings and change only one factor at a time.

Determine the environment and permission limits first for SSH access

In a hosting panel, you can manage only the terminal, SSH key, or remote connection settings made available to you. If you do not have access to the server’s SSH service configuration and system logs, verify the account’s SSH status, username, server address, and specified port in the panel instead of attempting to change administrator settings. Providers may use different ports, permissions, or connection policies, so do not rely on the default port 22.

On an administrator-controlled virtual or physical server, you need access to the operating system account, the relevant firewall policy, and the SSH service logs. If you do not have this access, the safe next step is to verify the access status through the console or support channel in the provider’s management panel; do not share sensitive information such as a user password, private key, or token in public areas.

Distinguish the stage at which the error occurs

The message shown in the browser or terminal is the starting point for the investigation. “Connection timed out” or a similar timeout generally makes it more likely that the address or port cannot be reached, that a network filter is involved, or that the service is not listening. “Connection refused” may indicate that the connection reached the target but no service was accepting connections on that port. “Permission denied” is usually related to the username, password, SSH key, account shell, or authentication policy.

For example, if a developer believes they are using the correct server address but sees only “Permission denied (publickey),” randomly changing the port is not the right approach. First check whether the correct public key is registered for the user selected in the panel and whether the client is using the correct private key; if the key is correct, examine the reason for the rejection in the server logs. By contrast, if the same attempt times out, evaluate the network path, port, and firewall first.

Examine the SSH connection safely, step by step

  1. Fix the connection details. Note the address, username, port, and authentication method shown in the panel or the provider’s server information. If you find an old IP address, an incorrect user, or a custom port specified by the provider, correct that information first; if there is no result, continue to the next step.
  2. Check the network and port result. Attempt the connection from the same device and record the difference between a timeout and a refusal. If you have administrator access, check the firewall logs to see whether your own source address is blocked. If the port is blocked, allow access only from the necessary source; preserve the existing network policy instead of opening broad access to all addresses.
  3. Verify that the SSH service is listening on the target. In the server management screen or provider console, inspect the service status and the listening port specified in the configuration. If the service is not running or is listening on the wrong port, correct the registered setting using the distribution’s management tool and make sure the change will not affect the current access session. Do not test the new connection before ensuring that a working emergency session remains available.
  4. Inspect the user account and shell. Check that the account is active, permitted to use SSH, and assigned a valid login shell. On shared hosting, if this option is disabled, enable SSH access through the panel or ask the provider to enable it; on an administrator-controlled server, correct only the permission setting for the relevant account. Do not change the permissions of other accounts in bulk.
  5. Compare the authentication record. After “Permission denied,” find the SSH authentication log for the same time period. If the record shows that the key could not be found, check that the correct public key is registered for the relevant account and that the client is using the matching private key. If the account is locked or rejected because of a policy, resolve the reason for the lock; do not disable security controls to hide failed attempts.
  6. Verify the same operation with new evidence. After recording the original value, change only the single setting you identified. Reconnect using the same address, user, and port, then inspect the log lines corresponding to the time of the new attempt. If the connection succeeds and a new successful session record appears, the correction has been verified. If the same error continues, undo the last change, preserve working alternative console access, and before moving to another factor, provide the provider with the error time and error type.

Make the client output more informative

If you have access to the command line, detailed client output can show which stage the error reaches. The following example is for diagnosis only; replace PORT with the port provided in the panel and replace the user and address fields with your own information:

ssh user@server-address -p PORT

In this output, observe whether the connection is established and which authentication methods are then attempted. For example, if a timeout occurs before the connection is established, changing the user key will not solve the problem; you need to return to the network or port findings. If the server is reached but the key is rejected, inspect the public key for the relevant account and the authentication log. If you need to share the output, mask addresses, usernames, and other sensitive information.

When should you escalate for a lasting solution?

If the panel has no SSH option, the service policy rejects the connection even though the account is correct, or you cannot access the administrator logs, this may be a provider-related limitation rather than a local client setting. In that case, record the connection time, port used, error category, and the last single change you made. Without sending a private key or password, you can also compare the relevant environment information on the Turkey VDS server plans page with your own management needs; this page does not mean that the current SSH problem will be solved automatically.

If access was completely lost after a setting change and you have an alternative console, first restore the last change. If alternative access is also unavailable, ask the provider for console or rollback support instead of trying a series of new settings. The next safe step is to use the exact time of the last failed attempt and the observed error type to ensure that only the relevant records are examined.


Top