AWARD WINNER

We've been recognized as "Best Hosting Provider of the Year"

Read More
  • +357 2425 0808
  • Login
  • English

Home

Blog

How to Enable SSH on Debian 11 Bullseye ...

How to Enable SSH on Debian 11 Bullseye Linux Server

How to Enable SSH on Debian 11 Bullseye Linux Server

NetShop ISP

NetShop ISP · Blog Author

Nov 02, 2022 · Technical Tutorials

In this tutorial we demonstrate the steps required by a Linux systems admin to install and enable SSH server on Debian 11 Bullseye Linux.

SSH is a network protocol used to administer a server remotely via command line. It’s the Linux alternative protocol to the RDP used in Windows systems.

Here’s what we are going to follow in this article:

  1. Installing OpenSSH service
  2. Checking SSH Server status
  3. Enabling SSH Server on system startup
  4. Troubleshooting Common Issues

1. Installing OpenSSH Service

To install SSH on Debian 11 execute the following commands on your server:

root@localhost:~$ apt update

Since the SSH server is not installed by default, use the following command to do so:

root@locahost:~$ apt install openssh-server

Enter “Y” once prompted to confirm the installation.

2. Checking SSH Server status

Upon installation’s completion, SSH service should be automatically started. To verify this run the following command:

root@localhost:~$ systemctl status ssh

If the SSH service is running, you should see the following on screen:

Loaded: loaded (/lib/systemd/system/ssh.service; enabled; [...]
Active: active (running) since [...]

Pres “q” or “Ctrl-C” to exit and return to the shell.

3. Enabling SSH Server on system startup

To ensure the SSH service is started upon server’s startup, execute the following command:

root@localhost:~$ systemctl enable ssh

You are done! You should be able now to remotely connect on your Debian 11 server via SSH.

Below we are providing the solution for the most common problems you may encounter when trying to install or enable the SSH service.

4. Troubleshooting Common Issues

If you have installed Debian 11 via a network ISO, them during installation you may have answered “No” to the question “Use a network mirror?”. If this is the case, then it means your system was installed without a mirror, or perhaps you didn’t have an active internet connection during installation.

This will cause an incomplete sources.list where repositories for Debian 11 updates and security fixes are not included.

You have to configure a mirror in order to be able to properly install the openssh-server package. Follow these steps:

4.1. Edit the file sources.list as follows:

root@localhost:~$ nano /etc/sources.list

4.2. Include the following 2 lines at the top of the file:

deb http://ftp.debian.org/debian/ buster main contrib non-free
deb-src http://ftp.debian.org/debian/ buster main contrib non-free

4.3. Save and exit the file

4.4. Run the following command to update your system with the newly added repositories:

root@localhost:~$ apt update

Once the update is completed, you can follow the steps in this article from the beginning, starting from the command “apt install openssh-server“.

Press Releases
68

Free VPS Trial

No Credit Card Required.

Recent Posts

How to Install WordPress with LEMP Stack on Debian 12 Server

How to Install WordPress with LEMP Stack on Debian 12 Server

06 December, 2023

How To Install and Configure NFS Server on Debian 12 and Ubuntu 22.04

How To Install and Configure NFS Server on Debian 12 and Ubuntu 22.04

28 November, 2023

NetShop ISP Unveils Unbeatable Black Friday Cyber Monday Hosting Deals: Up to 60% Off Cloud VPS Plans

NetShop ISP Unveils Unbeatable Black Friday Cyber Monday Hosting Deals: Up to 60% Off Cloud VPS Plans

21 November, 2023

Mastering the Forex Market: Unleashing the Power of Dedicated Servers for MT5 Hosting

Mastering the Forex Market: Unleashing the Power of Dedicated Servers for MT5 Hosting

20 November, 2023

Implement a Successful Disaster Recovery Strategy using a Hybrid Backup Solution

Implement a Successful Disaster Recovery Strategy using a Hybrid Backup Solution

13 November, 2023

#letushostyou

Award Winning Hosting Provider established in 2004.

120 Faneromenis Avenue, Imperial Tower, 2nd Floor, Larnaca 6031, Cyprus

Products

Bare Metal Servers

Customized Servers

Virtual / Cloud Servers

Forex VPS

Storage VPS

cPanel Web Hosting

Reseller Web Hosting

Colocation

Addons

Premium DNS

Email Hosting

Cloud Backup

DDoS Protection

Licenses

SSL Certificates

Domain Names

Premium SLAs

About Us

Data Center Locations

Looking Glass

Our Company

Contact Us

Careers in Cyprus

Become a Partner

Awards

Certifications

© 2023 S.S. NetShop Internet Services Ltd. All rights reserved.  Terms & Conditions  |  Privacy Policy
CY Reg. Number: HE 217340 | EU VAT Number: CY10217340J

Visa
Mastercard
PayPal
Bitcoin
Tether
Ethereum
Litecoin
Wise
Revolut
Wire Transfer