{"id":13881,"date":"2025-02-21T09:54:18","date_gmt":"2025-02-21T09:54:18","guid":{"rendered":"https:\/\/www.bodhost.com\/kb\/?p=13881"},"modified":"2026-02-26T14:02:08","modified_gmt":"2026-02-26T14:02:08","slug":"how-to-enable-ssh-password-authentication","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/how-to-enable-ssh-password-authentication\/","title":{"rendered":"How to Enable SSH Password Authentication"},"content":{"rendered":"<p>Some cloud server providers disable SSH password authentication by default for security reasons. Instead, they require public key authentication as the only method to log in via SSH.<\/p>\n<p>Since SFTP (Secure File Transfer Protocol) relies on SSH for authentication, password-based SFTP login will also not work unless SSH password authentication is enabled. In such cases, users must use <a href=\"https:\/\/www.bodhost.com\/kb\/how-to-generate-a-new-key-ssh-access\/\" target=\"_blank\" rel=\"noopener\">SSH keys<\/a> to access the server via SFTP.<\/p>\n<ol>\n<li><strong> Enable SSH Password Authentication:<br \/>\n<\/strong>To enable SSH password authentication, follow these steps:<\/p>\n<ol>\n<li>SSH into your server as root.<\/li>\n<li>Open the SSH configuration file for editing:\n<pre>nano \/etc\/ssh\/sshd_config<\/pre>\n<\/li>\n<li>Locate the following line:\n<pre>PasswordAuthentication no<\/pre>\n<p>Change it to:<\/p>\n<pre>PasswordAuthentication yes<\/pre>\n<\/li>\n<li>Save the file and exit.<\/li>\n<li>Restart the SSH service to apply the changes:\n<pre>sudo service ssh restart<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<li><strong>Enable Root Login Over SSH<br \/>\n<\/strong>Some server providers disable direct SSH access for the root user and instead create a separate user (e.g., ubuntu) with sudo privileges.If you need root access, you can switch to a root shell using:<\/p>\n<pre>sudo -i<\/pre>\n<p>If you prefer to allow direct SSH login as root, follow these steps:<\/p>\n<ol>\n<li>Edit the SSH configuration file:\n<pre>nano \/etc\/ssh\/sshd_config<\/pre>\n<\/li>\n<li>Locate the following line:\n<pre>PermitRootLogin no<\/pre>\n<p>Change it to:<\/p>\n<pre>PermitRootLogin yes<\/pre>\n<\/li>\n<li>Save the file and exit.<\/li>\n<li>Restart the SSH service:\n<pre>sudo service ssh restart<\/pre>\n<\/li>\n<li>Set a strong password for the root user:\n<pre>sudo passwd root<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>Warning: Enabling root login can be a security risk. Ensure you use a strong password and consider using SSH key authentication instead of passwords.<\/p>\n<p>This way, you can enable SSH password authentication. If you, still get into any difficulty, feel free to seek help from our support specialists.<\/p>\n<p data-pm-slice=\"0 0 []\">Learn <a href=\"https:\/\/www.bodhost.com\/kb\/how-to-restart-a-linux-system-using-the-reboot-command-via-ssh\/\" target=\"_blank\" rel=\"noopener\">How to Restart a Linux System using the reboot Command via SSH<\/a> for efficient system management and smooth operation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some cloud server providers disable SSH password authentication by default for security reasons. Instead, they require public key authentication as the only method to log in via SSH. Since SFTP (Secure File Transfer Protocol) relies on SSH for authentication, password-based SFTP login will also not work unless SSH password authentication is enabled. In such cases, [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[666],"tags":[1601],"class_list":["post-13881","post","type-post","status-publish","format-standard","hentry","category-general","tag-ssh-password-authentication"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Enable SSH Password Authentication | bodHOST<\/title>\n<meta name=\"description\" content=\"Learn how to enable SSH password authentication by modifying the SSH configuration file, allowing password-based logins for secure access.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/how-to-enable-ssh-password-authentication\/\" \/>\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 Password Authentication | bodHOST\" \/>\n<meta property=\"og:description\" content=\"Learn how to enable SSH password authentication by modifying the SSH configuration file, allowing password-based logins for secure access.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/how-to-enable-ssh-password-authentication\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-21T09:54:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:02:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/02\/how-to-enable-ssh-password-authentication.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Serena\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/02\/how-to-enable-ssh-password-authentication.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Serena\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-enable-ssh-password-authentication\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-enable-ssh-password-authentication\\\/\"},\"author\":{\"name\":\"Serena\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/ffd3f118493c99471ae5bd4790a55830\"},\"headline\":\"How to Enable SSH Password Authentication\",\"datePublished\":\"2025-02-21T09:54:18+00:00\",\"dateModified\":\"2026-02-26T14:02:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-enable-ssh-password-authentication\\\/\"},\"wordCount\":268,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"SSH Password Authentication\"],\"articleSection\":[\"General Discussion\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-enable-ssh-password-authentication\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-enable-ssh-password-authentication\\\/\",\"name\":\"How to Enable SSH Password Authentication | bodHOST\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2025-02-21T09:54:18+00:00\",\"dateModified\":\"2026-02-26T14:02:08+00:00\",\"description\":\"Learn how to enable SSH password authentication by modifying the SSH configuration file, allowing password-based logins for secure access.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-enable-ssh-password-authentication\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-enable-ssh-password-authentication\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-enable-ssh-password-authentication\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"General Discussion\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/general\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Enable SSH Password Authentication\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/ffd3f118493c99471ae5bd4790a55830\",\"name\":\"Serena\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g\",\"caption\":\"Serena\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/seema\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Enable SSH Password Authentication | bodHOST","description":"Learn how to enable SSH password authentication by modifying the SSH configuration file, allowing password-based logins for secure access.","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:\/\/www.bodhost.com\/kb\/how-to-enable-ssh-password-authentication\/","og_locale":"en_US","og_type":"article","og_title":"How to Enable SSH Password Authentication | bodHOST","og_description":"Learn how to enable SSH password authentication by modifying the SSH configuration file, allowing password-based logins for secure access.","og_url":"https:\/\/www.bodhost.com\/kb\/how-to-enable-ssh-password-authentication\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2025-02-21T09:54:18+00:00","article_modified_time":"2026-02-26T14:02:08+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/02\/how-to-enable-ssh-password-authentication.png","type":"image\/png"}],"author":"Serena","twitter_card":"summary_large_image","twitter_image":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/02\/how-to-enable-ssh-password-authentication.png","twitter_misc":{"Written by":"Serena","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/how-to-enable-ssh-password-authentication\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-enable-ssh-password-authentication\/"},"author":{"name":"Serena","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/ffd3f118493c99471ae5bd4790a55830"},"headline":"How to Enable SSH Password Authentication","datePublished":"2025-02-21T09:54:18+00:00","dateModified":"2026-02-26T14:02:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-enable-ssh-password-authentication\/"},"wordCount":268,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["SSH Password Authentication"],"articleSection":["General Discussion"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/how-to-enable-ssh-password-authentication\/","url":"https:\/\/www.bodhost.com\/kb\/how-to-enable-ssh-password-authentication\/","name":"How to Enable SSH Password Authentication | bodHOST","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2025-02-21T09:54:18+00:00","dateModified":"2026-02-26T14:02:08+00:00","description":"Learn how to enable SSH password authentication by modifying the SSH configuration file, allowing password-based logins for secure access.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-enable-ssh-password-authentication\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/how-to-enable-ssh-password-authentication\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/how-to-enable-ssh-password-authentication\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"General Discussion","item":"https:\/\/www.bodhost.com\/kb\/category\/general\/"},{"@type":"ListItem","position":2,"name":"How to Enable SSH Password Authentication"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/ffd3f118493c99471ae5bd4790a55830","name":"Serena","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g","caption":"Serena"},"url":"https:\/\/www.bodhost.com\/kb\/author\/seema\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/13881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=13881"}],"version-history":[{"count":5,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/13881\/revisions"}],"predecessor-version":[{"id":13978,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/13881\/revisions\/13978"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=13881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=13881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=13881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}