FREE TRIAL

Free VPS Trial

Start Free Trial
  • Live Chat
  • +357 2425 0808
  • Login
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 · 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“.

Categories

Backup
6
Business Continuity
4
Cloud Hosting
9
Colocation
4
Company Updates
1
Cryptocurrencies
1
Data Centers
12
Dedicated Servers
4
Disaster Recovery
3
Forex
24
Gaming
1
iGaming
33
Industry News
31
Interviews
10
Joomla
9
Magento
5
Managed Services
1
Operating Systems
1
Press Releases
60
Product News
6
Resellers
1
Security
24
Software & Apps
1
Streaming
1
Tech Startups
12
Tutorials
56
Uncategorized
389
Vps Hosting
11
Web Design & Development
3
Web Hosting
43
Webinars
1
Wordpress
14

Free VPS Trial

No Credit Card Required.

Recent Posts

Reflecting on a Year of Growth and Big Investment [CEO Interview at SBC Leaders Magazine]

Reflecting on a Year of Growth and Big Investment [CEO Interview at SBC Leaders Magazine]

25 January, 2023

How To Remove SSH Keys from Linux Server

How To Remove SSH Keys from Linux Server

16 January, 2023

How To Install Language Pack on Windows Server 2019

How To Install Language Pack on Windows Server 2019

30 December, 2022

Ultimate Fintech Awards 2023: NetShop ISP Shortlisted for “Best Connectivity Provider – MEA” Award

Ultimate Fintech Awards 2023: NetShop ISP Shortlisted for “Best Connectivity Provider – MEA” Award

29 December, 2022

Updated Version of myNetShop Client Portal Released: What’s New

Updated Version of myNetShop Client Portal Released: What’s New

27 December, 2022

Products

Bare Metal Dedicated Servers

Virtual Servers (VPS / VDS)

Rack Space & Colocation Hosting

Fast Web Hosting

Cloud Backup

Premium DNS Hosting

Resources

Blog

Videos

Events

APIConnect

WhitepapersNew

Looking Glass

Company

About Us

CareersNew

Awards & Honours

Become a hosting Partner of NetShop ISP

Contact Us

#letushostyou

Award Winning Hosting Provider with a Customer-centric approach to Business and an Open Source Mindset regarding Solutions and Products Development.

Est. 2004, Larnaca – Cyprus


About

Legal Address: 2A, Marathonos, Livadhia, 7060, Cyprus

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

Company Reg: HE 217340
EU VAT Number: CY10217340J
ISO 9001:2015: No. QS.21.038

International Phone: +357 2425 0808