Skip to content

How to Enable SSH on Debian 10?

junwufan edited this page Aug 24, 2021 · 1 revision

This tutorial focuses on setting up and configuring a SSH server on a Debian 10 minimal server

Step 1: Update the Package Manager

sudo apt-get update

Step 2: Install SSH Server

sudo apt install openssh-server

You can check the status of the SSH service with the following command:

sudo systemctl status ssh

Step 3: Start and Stop the SSH Server

To stop the SSH host server, enter the following:

sudo service ssh stop

To start the SSH service, use the following command:

sudo service ssh start

Step 4: Get Your Server IP Address

ip a

Step 5: Set PermitRootLogin yes in sshd_config File

vim /etc/ssh/sshd_config

Then change the value of PermitRootLogin to yes

PermitRootLogin yes

Then Save the ssh configuration file and restart the ssh service using systemctl command.

systemctl restart ssh.service
Clone this wiki locally