X
X

Select Your Currency

₺ Türk Lirası $ US Dollar
X
X

Select Your Currency

₺ Türk Lirası $ US Dollar

How to Enable and Use SSH Access Securely

HomepageArticlesTechnical GuidesHow to Enable and Use SSH Access Se...

SSH access lets you reach a server through an encrypted remote terminal connection instead of a graphical control panel. For a secure starting point, first verify that the provider supports this access and that it is enabled for your account; then use the correct server address, port, username, and authentication method. If the connection cannot be established, identify which stage the error occurs at instead of changing settings at random.

What information is required for SSH access?

This guide is intended for users who have access to the administrator panel or the operating system settings of a VPS or a specially managed Linux server. On shared hosting accounts, SSH may be enabled from the panel, assigned to a limited user, or unavailable from the provider. In that situation, you cannot change the system-wide SSH configuration; you must use only the information assigned to your account.

Before connecting, collect the following information in one place: the server’s IP address or hostname, the SSH port, the username, and either the password or the private key. Using the default port is not mandatory. If the provider has given you a different port, use that port in the client; do not change the port merely because the connection failed. The username also matters: some systems use the administrator account directly, while others use a separate user who can later elevate privileges.

Preparing SSH access securely

The first choice should be authentication with a supported key pair. The private key should be stored only on a device under your control; its corresponding public key is added to the authorized-keys list of the relevant user on the server. If password login is enabled, use a strong and unique password, but do not disable the existing access method before switching to key authentication. Testing the new method in a separate session reduces the risk of locking yourself out of the server.

On the server panel’s security or access screen, check the SSH status, port, and authorized user. If the operating system uses a firewall, verify that the same port allows external connections. However, change only the source and port required for SSH; completely disabling the firewall or unnecessarily allowing all addresses is not a secure fix. After enabling SSH access, you can also review the Turkey VDS server plans page separately to compare management responsibilities when choosing a server.

Practical steps for separating the source of a connection problem

  1. Verify the information and scope. Check that the SSH feature is enabled for your account or server in the panel, that the IP address is current, and that the port information has not changed. If this information is incorrect, do not change settings in the client; use the current connection information shown in the provider’s panel. If the feature is not enabled, access must be opened before proceeding to further network tests.
  2. Examine the network address and port response. Recheck the server address, port, and username fields in the SSH client you use. If you receive “connection timed out” or a similar result, the problem is usually related to an incorrect address, a closed port, a network access rule, or an unreachable server; do not yet conclude that the password or key is incorrect. Compare the access status in the panel with the port shown by the operating system firewall.
  3. Interpret the authentication message. If the server is reachable but you see a message such as “permission denied,” check the username and the selected key. If you use a key, verify that the correct private key is selected in the client and that the matching public key is assigned to the correct user on the server. If the keys do not match, keep the old working session open before adding a new key, and correct only the key entry for the relevant user.
  4. Search the server logs for the same time period. If you have administrator access, inspect the SSH service logs for the time of the connection attempt and the reason it was rejected; the records are generally available on the system logs screen or through a distribution-specific logging service. If there is no record at all, the request may not have reached the server; if the record shows that the user was rejected, the address and port are correct and the problem is on the authentication side. Do not share sensitive log content publicly.
  5. Make one targeted correction. For example, if the logs show that a request using the correct username cannot be found, grant that user SSH access on the server; do not change the port, firewall, and key at the same time. Note the existing value before making a change and, if possible, take a configuration backup. On shared hosting, this action is generally outside your control; use the SSH user setting in the panel or contact the provider’s support team.
  6. Repeat the same operation and look for new evidence. Try connecting again with the same address, port, and username used in the first failed attempt. This time, note the attempt time and check the server logs for a record in the new time range. If the connection succeeds, the correction has been verified; if it is still rejected, do not assume that the reason in the new record is the same as the previous error. If the problem continues, undo the last change, keep the working session open, and request support together with the provider’s access records.

Which setting does each symptom point to?

Suppose an SSH client on a managed VPS times out after waiting for a long time, and no record appears in the server logs for the same minute. This strengthens the possibility of a network path that cannot reach the server, an incorrect IP, or a closed port more than the possibility of an incorrect username. It is sensible to check the IP and port in the panel first, followed by the firewall rule. In contrast, if a new log entry shows a connection from the correct IP but reports that the key was rejected, correct the key assigned to the user and the client’s key selection without changing the network settings.

Secure use after the first connection

After connecting, verify your privilege level and avoid performing unnecessary operations with an administrator account. Do not copy the key file to shared computers, and do not share connection details in chats or publicly accessible error logs. Hardening steps such as changing the SSH port, disabling password login, or allowing only specific source addresses depend on the provider’s panel and your server administration; do not remove the existing method before testing these changes in a new, separate session.

The next safe step is to prepare a separate user with limited privileges and verified key access while preserving the working connection method first. Only after the new session opens with the same command, successful authentication is visible in the server log, and the old method is still available should you consider removing the old access method.


Top