NEW LOCATION

Olá Brazil Brazil NVMe-powered VPS Plans in Brazil Now Available.

Deploy Instantly
  • +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
79

Free VPS Trial

No Credit Card Required.

Recent Posts

Black Friday & Cyber Monday Offer – 30% Lifetime Discount on VPS Plans

Black Friday & Cyber Monday Offer – 30% Lifetime Discount on VPS Plans

02 December, 2024

How To Install Sendy on Ubuntu 22.04 Server

How To Install Sendy on Ubuntu 22.04 Server

27 November, 2024

How To Extract Certificates and Private Key from .PFX file

How To Extract Certificates and Private Key from .PFX file

19 November, 2024

NetShop ISP CEO Stefano Sordini to Moderate Key Panel on Forex AI Automation at Cyprus Fintech Summit 2024

NetShop ISP CEO Stefano Sordini to Moderate Key Panel on Forex AI Automation at Cyprus Fintech Summit 2024

15 November, 2024

Preparing for the Daylight Saving Time (DST) Change: Essential Updates for MetaTrader 4/5 Platforms

Preparing for the Daylight Saving Time (DST) Change: Essential Updates for MetaTrader 4/5 Platforms

25 October, 2024

#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

© 2024 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