{"id":13655,"date":"2025-03-05T07:12:52","date_gmt":"2025-03-05T07:12:52","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=13655"},"modified":"2025-03-05T07:49:25","modified_gmt":"2025-03-05T07:49:25","slug":"how-to-enable-ssh-root-login-on-debian-12","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/","title":{"rendered":"How to Enable SSH Root Login on Debian 12: Step-by-step"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.openssh.com\/\">SSH<\/a> (Secure Shell) is a <strong>network protocol<\/strong> that allows users to remotely access, control, and transfer files and other data. It ensures protected communication between two computers by encrypting the connection and safeguarding sensitive information. More specifically, SSH is primarily used for<strong> secure file transfers<\/strong>, <strong>system monitoring<\/strong>, and<strong> tasks requiring a secure communication channel<\/strong>.<\/p>\n\n\n\n<p>This guide will cover the installation and configuration process of SSH and will also let you know how to enable SSH root login on Debian 12.<\/p>\n\n\n\n<p>So, let\u2019s begin!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-13655-_yzqoicbohcfn\"><\/a><strong>1. Installing SSH on Debian 12<\/strong><\/h2>\n\n\n\n<p>Firstly, install SSH to provide secure access and manage and configure the server remotely by using the following command:<\/p>\n\n\n\n<pre>sudo apt install openssh-server<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"738\" height=\"386\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/installing-ssh.jpeg\" alt=\"Installing SSH\" class=\"wp-image-13656\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/installing-ssh.jpeg 738w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/installing-ssh-300x157.jpeg 300w\" sizes=\"(max-width: 738px) 100vw, 738px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Next, install the SSH client with:<\/p>\n\n\n\n<pre>sudo apt install openssh-client<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"737\" height=\"208\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/installing-client-application.jpeg\" alt=\"Installing Client Application\" class=\"wp-image-13657\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/installing-client-application.jpeg 737w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/installing-client-application-300x85.jpeg 300w\" sizes=\"(max-width: 737px) 100vw, 737px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-13655-_q6fm2bnii16h\"><\/a><strong>2. Configuring SSH on Debian 12<\/strong><\/h2>\n\n\n\n<p>Configuring SSH is important for <strong>secure remote access<\/strong> to your server. This setup allows you to securely connect to your server remotely and make sure that your management and communication are protected.<\/p>\n\n\n\n<p>So, start by checking the status of SSH by utilizing the below command:<\/p>\n\n\n\n<pre>sudo systemctl status ssh<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"737\" height=\"308\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/checking-service-status.jpeg\" alt=\"Checking SSH Service Status\" class=\"wp-image-13658\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/checking-service-status.jpeg 737w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/checking-service-status-300x125.jpeg 300w\" sizes=\"(max-width: 737px) 100vw, 737px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>In case SSH is not enabled, then enable it using:<\/p>\n\n\n\n<pre>sudo systemctl enable ssh<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"701\" height=\"181\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/enabling-ssh-on-debian-12.jpeg\" alt=\"enabling SSH on Debian 12\" class=\"wp-image-13659\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/enabling-ssh-on-debian-12.jpeg 701w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/enabling-ssh-on-debian-12-300x77.jpeg 300w\" sizes=\"(max-width: 701px) 100vw, 701px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>After enabling it, start the SSH service with the command:<\/p>\n\n\n\n<pre>sudo systemctl start ssh<\/pre>\n\n\n\n<p>This command starts SSH and allows you to connect server remotely:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"102\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/starting-ssh.jpeg\" alt=\"starting ssh\" class=\"wp-image-13660\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/starting-ssh.jpeg 702w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/starting-ssh-300x44.jpeg 300w\" sizes=\"(max-width: 702px) 100vw, 702px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-13655-_9ycju3sv2afr\"><\/a><strong>3. Configuring SSHD on Debian 12<\/strong><\/h2>\n\n\n\n<p><strong>SSHD<\/strong> (<strong>SSH Daemon<\/strong>) is the server-side program that handles SSH connections. By configuring the SSHD, you can control many settings to manage, such as root login permissions. This ensures that remote access is secure and aligns with your server&#8217;s security policies.<\/p>\n\n\n\n<p>Now, check the SSHD status to ensure that it is enabled through:<\/p>\n\n\n\n<pre>sudo systemctl status sshd<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"739\" height=\"345\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/checking-the-sshd-service.jpeg\" alt=\"checking the SSHD service\" class=\"wp-image-13661\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/checking-the-sshd-service.jpeg 739w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/checking-the-sshd-service-300x140.jpeg 300w\" sizes=\"(max-width: 739px) 100vw, 739px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>To enable and start the SSHD service, use the below command:<\/p>\n\n\n\n<pre>sudo systemctl enable sshd<\/pre>\n\n\n\n<pre>sudo systemctl start sshd<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-13655-_8cwo4y71nof5\"><\/a><strong>4. Enabling SSH Root Login on Debian 12<\/strong><\/h2>\n\n\n\n<p>If you want to use a Debian root account by SSH, you will get a permission error. To resolve it, first open the SSH configuration file with:<\/p>\n\n\n\n<pre>sudo nano \/etc\/ssh\/sshd_config<\/pre>\n\n\n\n<p>Then paste the below line as indicated in the given image:<\/p>\n\n\n\n<pre>PermitRootLogin yes<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"324\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/editing-the-ssh-server-configuration-file.jpeg\" alt=\"Editing the ssh server \n configuration file\" class=\"wp-image-13662\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/editing-the-ssh-server-configuration-file.jpeg 738w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/editing-the-ssh-server-configuration-file-300x132.jpeg 300w\" sizes=\"(max-width: 738px) 100vw, 738px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Now, refresh the SSHD service to make sure that the updates have taken effect:<\/p>\n\n\n\n<pre>systemctl restart sshd<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"692\" height=\"117\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/restarting-the-ssh-server.jpeg\" alt=\"restarting the SSH server\" class=\"wp-image-13663\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/restarting-the-ssh-server.jpeg 692w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/restarting-the-ssh-server-300x51.jpeg 300w\" sizes=\"(max-width: 692px) 100vw, 692px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13655-_35bkqo6hegsb\"><\/a><strong>Conclusion<\/strong><\/h3>\n\n\n\n<p>In this guide, we have covered the <strong>installation <\/strong>and <strong>configuration <\/strong>process of SSH. We have also looked at how to enable SSH root login on Debian 12.<\/p>\n\n\n\n<p>By installing and setting up the SSH server and client and adjusting settings such as <strong>enabling root login<\/strong>, you can enhance your server management&#8217;s security and flexibility.<\/p>\n\n\n\t\t\t\t\t\t\t<h3 style=\"margin-bottom:20px;display:block;width:100%;margin-top:10px\">Frequently Asked Questions <\/h3>\r\n\t\t\t\t\t\t<style>\r\n\t\t\t\t<style>\r\n#wpsm_accordion_13666 .wpsm_panel-heading{\r\n\tpadding:0px !important;\r\n}\r\n#wpsm_accordion_13666 .wpsm_panel-title {\r\n\tmargin:0px !important; \r\n\ttext-transform:none !important;\r\n\tline-height: 1 !important;\r\n}\r\n#wpsm_accordion_13666 .wpsm_panel-title a{\r\n\ttext-decoration:none;\r\n\toverflow:hidden;\r\n\tdisplay:block;\r\n\tpadding:0px;\r\n\tfont-size: 18px !important;\r\n\tfont-family: Open Sans !important;\r\n\tcolor:#000000 !important;\r\n\tborder-bottom:0px !important;\r\n}\r\n\r\n#wpsm_accordion_13666 .wpsm_panel-title a:focus {\r\noutline: 0px !important;\r\n}\r\n\r\n#wpsm_accordion_13666 .wpsm_panel-title a:hover, #wpsm_accordion_13666 .wpsm_panel-title a:focus {\r\n\tcolor:#000000 !important;\r\n}\r\n#wpsm_accordion_13666 .acc-a{\r\n\tcolor: #000000 !important;\r\n\tbackground-color:#e8e8e8 !important;\r\n\tborder-color: #ddd;\r\n}\r\n#wpsm_accordion_13666 .wpsm_panel-default > .wpsm_panel-heading{\r\n\tcolor: #000000 !important;\r\n\tbackground-color: #e8e8e8 !important;\r\n\tborder-color: #e8e8e8 !important;\r\n\tborder-top-left-radius: 0px;\r\n\tborder-top-right-radius: 0px;\r\n}\r\n#wpsm_accordion_13666 .wpsm_panel-default {\r\n\t\tborder:1px solid transparent !important;\r\n\t}\r\n#wpsm_accordion_13666 {\r\n\tmargin-bottom: 20px;\r\n\toverflow: hidden;\r\n\tfloat: none;\r\n\twidth: 100%;\r\n\tdisplay: block;\r\n}\r\n#wpsm_accordion_13666 .ac_title_class{\r\n\tdisplay: block;\r\n\tpadding-top: 12px;\r\n\tpadding-bottom: 12px;\r\n\tpadding-left: 15px;\r\n\tpadding-right: 15px;\r\n}\r\n#wpsm_accordion_13666  .wpsm_panel {\r\n\toverflow:hidden;\r\n\t-webkit-box-shadow: 0 0px 0px rgba(0, 0, 0, .05);\r\n\tbox-shadow: 0 0px 0px rgba(0, 0, 0, .05);\r\n\t\tborder-radius: 4px;\r\n\t}\r\n#wpsm_accordion_13666  .wpsm_panel + .wpsm_panel {\r\n\t\tmargin-top: 5px;\r\n\t}\r\n#wpsm_accordion_13666  .wpsm_panel-body{\r\n\tbackground-color:#ffffff !important;\r\n\tcolor:#000000 !important;\r\n\tborder-top-color: #e8e8e8 !important;\r\n\tfont-size:16px !important;\r\n\tfont-family: Open Sans !important;\r\n\toverflow: hidden;\r\n\t\tborder: 2px solid #e8e8e8 !important;\r\n\t}\r\n\r\n#wpsm_accordion_13666 .ac_open_cl_icon{\r\n\tbackground-color:#e8e8e8 !important;\r\n\tcolor: #000000 !important;\r\n\tfloat:right !important;\r\n\tpadding-top: 12px !important;\r\n\tpadding-bottom: 12px !important;\r\n\tline-height: 1.0 !important;\r\n\tpadding-left: 15px !important;\r\n\tpadding-right: 15px !important;\r\n\tdisplay: inline-block !important;\r\n}\r\n\r\n\t\t\t\r\n\t\t\t<\/style>\t\r\n\t\t\t<\/style>\r\n\t\t\t<div class=\"wpsm_panel-group\" id=\"wpsm_accordion_13666\" >\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13666 \" href=\"javascript:void(0)\" data-target=\"#ac_13666_collapse1\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tWhy is SSH root login disabled by default on Debian 12?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13666_collapse1\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tSSH root login is disabled by default for security reasons. Allowing root access directly can make your system vulnerable to brute-force attacks.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13666 \" href=\"javascript:void(0)\" data-target=\"#ac_13666_collapse2\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow can I enable SSH root login on Debian 12?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13666_collapse2\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tTo enable SSH root login, edit the SSH configuration file (<code>\/etc\/ssh\/sshd_config<\/code>) and set <code>PermitRootLogin<\/code> to <code>yes<\/code>, then restart the SSH service using <code>systemctl restart sshd<\/code>.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13666 \" href=\"javascript:void(0)\" data-target=\"#ac_13666_collapse3\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tWhat is the potential risk of enabling SSH root login?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13666_collapse3\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tEnabling SSH root login increases the risk of unauthorized access, as attackers can directly target the root account, which has full system privileges.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13666 \" href=\"javascript:void(0)\" data-target=\"#ac_13666_collapse4\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tCan I use a password for SSH root login?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13666_collapse4\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tYes, you can use a password for root login, but it's recommended to use SSH key authentication for better security, disabling password authentication if possible.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13666 \" href=\"javascript:void(0)\" data-target=\"#ac_13666_collapse5\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow do I disable SSH root login after enabling it?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13666_collapse5\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tTo disable SSH root login, change the <code>PermitRootLogin<\/code> directive in <code>\/etc\/ssh\/sshd_config<\/code> back to <code>no<\/code> or <code>prohibit-password<\/code>, then restart the SSH service.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\r\n<script type=\"text\/javascript\">\r\n\t\r\n\t\tfunction do_resize(){\r\n\r\n\t\t\tvar width=jQuery( '.wpsm_panel .wpsm_panel-body iframe' ).width();\r\n\t\t\tvar height=jQuery( '.wpsm_panel .wpsm_panel-body iframe' ).height();\r\n\r\n\t\t\tvar toggleSize = true;\r\n\t\t\tjQuery('iframe').animate({\r\n\t\t\t    width: toggleSize ? width : 640,\r\n\t\t\t    height: toggleSize ? height : 360\r\n\t\t\t  }, 250);\r\n\r\n\t\t\t  toggleSize = !toggleSize;\r\n\t\t}\r\n\t\t\r\n<\/script>\t\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>SSH (Secure Shell) is a network protocol that allows users to remotely access, control, and transfer files and other data. It ensures protected communication between two computers by encrypting the connection and safeguarding sensitive information. More specifically, SSH is primarily used for secure file transfers, system monitoring, and tasks requiring a secure communication channel. This [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":13668,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[297,701,700,266],"class_list":["post-13655","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-debian-12","tag-remote-access","tag-root-login","tag-ssh"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Enable SSH Root Login on Debian 12: Step-by-step<\/title>\n<meta name=\"description\" content=\"This guide will cover the installation and configuration process of SSH and will also let you know how to enable SSH root login on Debian 12.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Enable SSH Root Login on Debian 12: Step-by-step\" \/>\n<meta property=\"og:description\" content=\"This guide will cover the installation and configuration process of SSH and will also let you know how to enable SSH root login on Debian 12.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-05T07:12:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-05T07:49:25+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/Enable-SSH-Root-Login-on-Debian-12.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to Enable SSH Root Login on Debian 12: Step-by-step\",\"datePublished\":\"2025-03-05T07:12:52+00:00\",\"dateModified\":\"2025-03-05T07:49:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/\"},\"wordCount\":386,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/Enable-SSH-Root-Login-on-Debian-12.jpg\",\"keywords\":[\"Debian 12\",\"Remote Access\",\"Root login\",\"SSH\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/\",\"name\":\"How to Enable SSH Root Login on Debian 12: Step-by-step\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/Enable-SSH-Root-Login-on-Debian-12.jpg\",\"datePublished\":\"2025-03-05T07:12:52+00:00\",\"dateModified\":\"2025-03-05T07:49:25+00:00\",\"description\":\"This guide will cover the installation and configuration process of SSH and will also let you know how to enable SSH root login on Debian 12.\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/Enable-SSH-Root-Login-on-Debian-12.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/Enable-SSH-Root-Login-on-Debian-12.jpg\",\"width\":1020,\"height\":600,\"caption\":\"Enable SSH Root Login on Debian 12\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Enable SSH Root Login on Debian 12: Step-by-step\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Enable SSH Root Login on Debian 12: Step-by-step","description":"This guide will cover the installation and configuration process of SSH and will also let you know how to enable SSH root login on Debian 12.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/","og_locale":"en_US","og_type":"article","og_title":"How to Enable SSH Root Login on Debian 12: Step-by-step","og_description":"This guide will cover the installation and configuration process of SSH and will also let you know how to enable SSH root login on Debian 12.","og_url":"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/","og_site_name":"Greenwebpage Community","article_published_time":"2025-03-05T07:12:52+00:00","article_modified_time":"2025-03-05T07:49:25+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/Enable-SSH-Root-Login-on-Debian-12.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to Enable SSH Root Login on Debian 12: Step-by-step","datePublished":"2025-03-05T07:12:52+00:00","dateModified":"2025-03-05T07:49:25+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/"},"wordCount":386,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/Enable-SSH-Root-Login-on-Debian-12.jpg","keywords":["Debian 12","Remote Access","Root login","SSH"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/","url":"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/","name":"How to Enable SSH Root Login on Debian 12: Step-by-step","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/Enable-SSH-Root-Login-on-Debian-12.jpg","datePublished":"2025-03-05T07:12:52+00:00","dateModified":"2025-03-05T07:49:25+00:00","description":"This guide will cover the installation and configuration process of SSH and will also let you know how to enable SSH root login on Debian 12.","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/Enable-SSH-Root-Login-on-Debian-12.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/03\/Enable-SSH-Root-Login-on-Debian-12.jpg","width":1020,"height":600,"caption":"Enable SSH Root Login on Debian 12"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-enable-ssh-root-login-on-debian-12\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to Enable SSH Root Login on Debian 12: Step-by-step"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/13655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=13655"}],"version-history":[{"count":3,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/13655\/revisions"}],"predecessor-version":[{"id":13667,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/13655\/revisions\/13667"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/13668"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=13655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=13655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=13655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}