Skip to content
15/05/2025
  • Versione italiana
  • YouTube

sergio de santis

IT and telecommunications blogs

Primary Menu

sergio de santis

  • Home
  • Portfolio clienti web
  • Sviluppo App per Smartphone
  • Ubuntu server

Enable Root Login via SSH In Ubuntu

0

SSH on Ubuntu comes configured by default in a way that disables the root users log in. This was originally setted as a security precaution which means that you cannot directly log in as the root user over SSH. In some cases, though it’s just more convenient to get directly logged in as root.

Enable root login over SSH

  1. Login to your server as root.
  2. As the root user, edit the sshd_config file found in /etc/ssh/sshd_config:
    nano /etc/ssh/sshd_config
  3. Add the following line to the file, you can add it anywhere but it’s good practice to find the block about authentication and add it there.
    PermitRootLogin yes
  4. Save and exit the file.
  5. Restart the SSH server:
    systemctl restart sshd
    or
    service sshd restart

With the new line added and the SSH server restarted, you can now connect via the root user.

This process works on almost all versions of Linux-based servers on which the sshd service is installed. If you use a server with cPanel or WebMin interface, you can check the settings from the control panel interface.

Tags: Root Login via SSH, Root Login via SSH In Ubuntu

Continue Reading

Previous Tabella MySQL contrassegnata come crash e la riparazione (automatica) non risolve il problema
Next How to Manually Upgrade phpMyAdmin

More Stories

  • MySQL
  • Ubuntu server

How to Manually Upgrade phpMyAdmin

0
  • MySQL
  • Ubuntu server

Tabella MySQL contrassegnata come crash e la riparazione (automatica) non risolve il problema

0
  • Ubuntu server
  • Windows 2012

Ubuntu Linux Server as a Hyper-V Guest: tips and tricks

0

Lascia un commento Annulla risposta

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

amazon.it

  • Latest
  • Popular
  • Trending
    • MySQL
    • Ubuntu server

    How to Manually Upgrade phpMyAdmin

    0
    • Ubuntu server

    Enable Root Login via SSH In Ubuntu

    0
    • Windows 10
    • Windows 2012
    • Windows 7
    • Windows all versions

    How to delete a file that ends with the dot in Windows

    0
    • Windows 10
    • Windows 2012
    • Windows 7
    • Windows all versions

    Remote Print in AnyDesk

    0
    • Windows 10
    • Windows 2012
    • Windows 7
    • Windows all versions

    Import mail from Outlook into Thunderbird

    0
    • Windows 10
    • Windows 2012

    Abilitare il client Telnet su Windows 10

    0
    • MySQL
    • Ubuntu server

    How to Manually Upgrade phpMyAdmin

    0
    • Ubuntu server

    Enable Root Login via SSH In Ubuntu

    0
    • Windows 10
    • Windows 2012
    • Windows 7
    • Windows all versions

    How to delete a file that ends with the dot in Windows

    0
    • Windows 10
    • Windows 2012
    • Windows 7
    • Windows all versions

    Remote Print in AnyDesk

    0
    • Windows 10
    • Windows 2012
    • Windows 7
    • Windows all versions

    How to delete a file that ends with the dot in Windows

    0
    • Windows 10
    • Windows 2012
    • Windows 7
    • Windows all versions

    Remote Print in AnyDesk

    0
    • Windows 10
    • Windows 2012
    • Windows 7
    • Windows all versions

    Import mail from Outlook into Thunderbird

    0
    • Windows 10
    • Windows 2012

    How to disable the automatic installation of printers and peripherals in Windows 10

    0
  • connessione remota anydesk
    • Remote connections
    • Windows 10
    • Windows 2012
    • Windows 7

    Usare Anydesk in rete locale

    0

Commenti recenti

    Forse hai perso …

    • MySQL
    • Ubuntu server

    How to Manually Upgrade phpMyAdmin

    0
    • Ubuntu server

    Enable Root Login via SSH In Ubuntu

    0
    • Windows 10
    • Windows 2012
    • Windows 7
    • Windows all versions

    How to delete a file that ends with the dot in Windows

    0
    • Windows 10
    • Windows 2012
    • Windows 7
    • Windows all versions

    Remote Print in AnyDesk

    0
    • Windows 10
    • Windows 2012
    • Windows 7
    • Windows all versions

    Import mail from Outlook into Thunderbird

    0

    Computer notes

    A little to fix the results obtained in solving some problems, a little to help because I don’t think I’m the only one having to face them, hoping to be useful.

    Recent posts

    • How to Manually Upgrade phpMyAdmin
    • Enable Root Login via SSH In Ubuntu
    • How to delete a file that ends with the dot in Windows

    Categorie

    IT security MySQL Remote connections Ubuntu server Windows 7 Windows 10 Windows 2012 Windows all versions
    • Home
    • Windows 10
    • Ubuntu server
    • MySQL
    • YouTube
    Copyright © All rights reserved. | CoverNews by AF themes.