Secure Shell (SSH) is a secure protocol that provides encrypted access to remote systems. It helps ensure the confidentiality and integrity of data transmitted over networks.
In this guide, you’ll learn how to install or reinstall the SSH server on the various Linux distributions we currently offer on our VPS and dedicated servers. Most Linux distributions we offer on our VPS and dedicated servers come with an SSH server installed by default, which you can easily manage through the product’s web interface. Find out how in our guide: First access (SSH)
If you’d like to further improve your server’s security, we recommend our security tips, where you’ll find many tools and services to help make your server even more secure.
To get started, access your server through VNC. Just follow the steps in the VNC console.
If you want to reinstall the SSH server, uninstall it first with: yum remove openssh.
Before installing the SSH server, make sure your system is up to date. Run the following command:
yum update
Now install the SSH server with this command:
yum install openssh-server
After installation, start the SSH server with:
systemctl start sshd
To start the service automatically when the system boots, enable it with:
systemctl enable sshd
To allow root login, you need to edit the OpenSSH configuration file. We’ll use the "nano" editor here.
If "nano" isn’t installed yet, you can install it with yum install nano.
Open the configuration file with:
nano /etc/ssh/sshd_config
Use the arrow keys to navigate to this line:
#PermitRootLogin prohibit-password
Change it to:
PermitRootLogin yes
Restart the SSH server for the change to take effect:
systemctl restart sshd
If you want to reinstall the SSH server, uninstall it first with: apt remove openssh.
Update your system before installation:
apt update
Install the SSH server with:
apt install openssh-server
Start the SSH server:
systemctl start sshd
Enable the service to start automatically at boot:
systemctl enable sshd
To allow root login, edit the OpenSSH configuration file using "nano".
If "nano" isn’t installed yet, install it with: apt install nano
Open the file:
nano /etc/ssh/sshd_config
Find this line:
#PermitRootLogin prohibit-password
Change it to:
PermitRootLogin yes
Restart the SSH server for the change to take effect:
systemctl restart sshd
If you want to reinstall the SSH server, uninstall it first with: apt remove openssh.
Update your system before installation:
apt update
Install the SSH server with:
apt install openssh-server
Start the SSH server:
systemctl start sshd
Enable the service to start automatically at boot:
systemctl enable sshd
To allow root login, edit the OpenSSH configuration file using "nano".
If "nano" isn’t installed yet, install it with: apt install nano
Open the file:
nano /etc/ssh/sshd_config
Find this line:
#PermitRootLogin prohibit-password
Change it to:
PermitRootLogin yes
Restart the SSH server for the change to take effect:
systemctl restart sshd
If you want to reinstall the SSH server, uninstall it first with: dnf remove openssh.
Update your system before installation:
dnf update
Install the SSH server with:
dnf install openssh-server
Start the SSH server:
systemctl start sshd
Enable the service to start automatically at boot:
systemctl enable sshd
To allow root login, edit the OpenSSH configuration file using "nano".
If "nano" isn’t installed yet, install it with: dnf install nano
Open the file:
sudo nano /etc/ssh/sshd_config
Find this line:
#PermitRootLogin prohibit-password
Change it to:
PermitRootLogin yes
Restart the SSH server for the change to take effect:
systemctl restart sshd
You’ve now successfully installed the SSH service on your server and can connect to it using SSH.