Budget-friendly, full-performance, fully equipped servers in any desired location.
ExploreBudget-friendly, full-performance, fully equipped servers in any desired location.
ExploreWhen setting up a virtual server for the first time, the safest approach is to verify administrative access, prepare a backup access method, and allow only the network connections that are necessary rather than publishing the application immediately. This guide helps you systematically configure SSH keys, the firewall, updates, and rollback steps on a Linux-based server to which you have administrative access.
The following steps are suitable for a virtual server on which you have access to operating system administration. If you can see only site settings in a shared hosting panel, you should not change the SSH service, operating system updates, or firewall there; use the relevant tools in the service provider’s panel for those operations. You need an administrator account, the provider’s console or an SSH client, and, if possible, access to the provider’s snapshot or backup feature.
Before making changes, record the current SSH port, the users that have been created, the firewall rules, and the ports on which the running application is listening. If the provider offers snapshots, create a rollback point before changing anything on the operating system. Changing only one setting at a time makes it possible to determine which change took effect if the connection is interrupted.
SSH is a protocol that establishes a secure management connection to a server through the command line. First create a new administrative user, then add the public part of the SSH key on your own computer to that user’s authorized keys area through the provider’s console or a trusted management tool. Do not upload the private key to the server or to a publicly accessible repository.
If the connection fails at this stage, interpret the result correctly: a message similar to “permission denied” generally suggests that the key was added to the wrong user or that file access permissions are incorrect, while a timeout suggests the firewall, network routing, or an incorrect port. SSH service logs are usually found in the system logs or in the event screen of the distribution’s management panel. Restoring the previous setting and using the provider’s recovery console is safer than losing access completely.
A firewall is a set of rules that determines which network connections can reach the server. Before applying the first rule, note the port used by your current SSH connection and the ports that are genuinely required by your web application. A typical web service needs HTTP and HTTPS; opening the database port to the public internet creates an unnecessary risk in most setups.
First allow only management access and the ports required by the application, then enable the default-deny behavior. If possible, restrict SSH access to your own fixed network address; if your address changes, keep the provider’s console and recovery plan ready so that you do not lose access. After saving the rule, repeat the same SSH connection operation by opening a new session and look for an accepted connection record from the same time in the firewall logs.
For example, if a website is running on your virtual server but the management connection can be established only through the provider’s console, the SSH port may have been forgotten in the firewall. Expanding the web ports will not solve this problem; first check that the SSH rule was added with the correct port and source address. If the connection works after the new rule and the application’s HTTPS request also receives a response, the configuration has achieved its purpose. If the connection still times out, revert the last rule, return to the previously working state, and examine whether the provider’s network and the operating system firewall are both being used.
Apply security updates for the operating system and installed services after access has been verified. Review the pending packages and any restart requirement on the update screen; do not randomly restart all services merely to solve a problem. When the update is complete, repeat the same SSH connection as before and the same basic URL request to the application. Check whether errors appear in the service logs for the new time period.
If the application is working but only a particular service fails to start after the update, inspect that service’s status and the new log lines instead of rolling back the entire virtual server. If the configuration file shows one setting affected by the update, compare it with the previous value and revert only that setting you changed. If the same request succeeds on the next attempt, you can keep the correction; if the failure continues, record the new evidence before restoring the snapshot.
Remember that a backup and a snapshot are not the same thing. A snapshot generally makes it easier to return the server to its state at a particular moment; a consistent backup of the application’s database and uploaded files depends on the provider, the storage method, and the application’s own backup mechanism. Before an operation that changes data, verify that the application backup can actually be read by performing a small and safe restoration attempt.
When setup is complete, evaluate three separate results together: the new administrative user must be able to connect with the key, the required web request must receive a response, and the logs for the same time period must show no unexpected access or service errors. If any one of these three results is missing, the setup should not be considered complete. The original values you recorded and the backup determine which change to roll back; changing all settings at once makes diagnosis more difficult.
The next safe step is to add these notes to your server inventory and verify the application’s actual backup restoration procedure in a separate environment. If you are choosing a new server, you can use the Turkey VDS server plans page only to review the available options, and you can separately compare your technical requirements with the provider’s information.
Copyright © 2026 All Rights Reserved
