When using Linux, the most common way to connect to a dedicated server is via the SSH (Secure Shell) protocol. SSH provides an encrypted connection and secure data transfer. Below are the general steps:
Installing the SSH Client (if not already installed)
Most Linux distributions come with an SSH client by default. You can check this by running: ssh -V
. If the SSH client is not installed, you can add it using your package manager, for example sudo apt-get install openssh-client
.
Obtaining the Connection Details
You will need:
root
or another specifically created user);
Connecting via SSH
To connect, run ssh username@server_IP
. If you are using a private key, specify it using the -i
option: ssh -i /path/to/key username@server_IP
.
Accepting the Server’s Key
On the first connection, SSH may prompt you to confirm the server’s host key. Type yes
to proceed. After doing so, you will be placed into the server’s command shell, ready to execute commands.
On Windows, you can also connect to a dedicated server via SSH or by using Remote Desktop (RDP), depending on the server’s operating system.
Connecting via SSH (Windows)
Using Windows 10/11 built-in SSH client. Open PowerShell or CMD and enter: ssh username@server_IP
Similar to Linux, you may specify a private key if needed. Using PuTTY:
Connecting via Remote Desktop (RDP)
If your dedicated server is running Windows Server, you can connect using RDP:
You will then see the server’s desktop in a window on your local computer.
ssh-keygen
(on Linux or Windows with Git Bash) and add the public key to the server. This eliminates the need for a password and reduces the risk of unauthorized access.Learn more about how to purchase a domain, hosting, VPS, or dedicated server.
To access a server folder, you need to connect via SSH using an SSH client. Once successfully connected, you can use file management commands (e.g., cd
to change directories, ls
to list directory contents) to navigate the server’s file system and access the desired folder.
To view all files on the server, you can use the find command in the terminal after connecting via SSH. The find command allows you to search for files based on various criteria such as name, size, or creation date. For example, find / -type f will display all regular files in the entire file system, starting from the root directory.
To restrict server access by IP address, configure the firewall accordingly. A firewall allows you to allow or deny connections to specific ports and IP addresses. You can create firewall rules that block all incoming connections except those allowed for certain IP addresses.