1. July 2021
Activate SSH on Debian
In this basic tutorial I’ll show you how to activate SSH on Debian VM.
The /etc/ssh/sshd_config contains SSH configuration information for our Debian VM. We need to edit this File with vim or nano (preferred) editor. Login into your Debian 10 virtual machine as User or Root. If you are root, you don’t need to use sudo:
Sample Output:
We need to add a new Line under #PermitRootLogin prohibit-password (Line 32) and type:
With PermitRootLogin yes (without “#”) – we allow our Debian virtual machine to use SSH. Now we need to restart the ssh service with following command:
Now our Debian virtual machine is accessible via SSH. Let’s make sure the ssh service restarted without any errors with following command:
Sample Output:
If you have any questions, please leave a comment. 🙂