How to install an SSH server on Debian

On Debian, it’s quite easy to install an SSH server to get access from remote machines.

Before we want to install the SSH server we will update your apt repository cache with the following command:

sudo apt-get update

Now we can install the SSH server by installing the openssh-server package.

sudo apt-get install openssh-server

As soon as the installation is completed, your ssh server is running. You can check it by using the following command:

sudo systemctl status ssh

In the screenshot you can see, that the server is running, by looking at the line with starting Active: active (running). Now you can connect to the server using the ssh command from your local machine

ssh username@host

Take also a look into my other SSH Articles and let a comment.

chevron_left
chevron_right

Leave a comment

Your email address will not be published. Required fields are marked *

Comment
Name
Email
Website

This site uses Akismet to reduce spam. Learn how your comment data is processed.