-
Notifications
You must be signed in to change notification settings - Fork 7
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
sudo apt-get update
sudo apt install openssh-server
You can check the status of the SSH service with the following command:
sudo systemctl status ssh
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
ip a
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