How to Enable SSH Password Authentication
August 12, 2021

On CloudPages you will use SFTP to upload files to your web application. Now, while installing your server if you have chosen key-based authentication then your cloud provider will usually disable password-based authentication.

So, If you have set a password for SFTP users you won’t be able to access it through the FileZilla client with a password (if password authentication is disabled).

Use this guide to enable SSH password authentication.

Step-1: Login as root in SSH client

To enable password authentication first you have to log in as a root user in your SSH client, I am using Bitvise ssh client, provide the required credentials, and log in (you will have to use key-based login here because password authentication is disabled).

Once you have logged in successfully, you can see the terminal and new SFTP window icons in the sidebar. You can enable password authentication through the terminal as well as the SFTP window. In this guide, I will show you how to enable password authentication via the SFTP window. So click on the New SFTP window.

Once you click on the New SFTP window you can see that a new window appears on your screen. On the Remote files section type the path of a directory where the configuration for SSH resides, usually it is /etc/ssh on Linux based servers.

Step-2: Enable the Password Authentication

Inside /etc/ssh you have to open sshd_config file, right-click on it and click edit.

You can see that the editor is opened:

Find the following line

PasswordAuthentication no

and change it to

PasswordAuthentication yes

Step-3: Restart SSH Service

Once done, you should restart the ssh service. Goto bitwise client and open your terminal as root and run this command:

systemctl restart sshd

You have successfully enabled password-based authentication for SSH after following the steps above.

If you have any questions, feel free to ask in the comments box below.

Habbi is support lead at CloudPages. He also loves to write about WordPress, SEO and Digital Marketing.

Recent Posts

Get Newsletter Updates

How to use Amazon SES to send Emails

How to use Amazon SES to send Emails

https://www.youtube.com/watch?v=ntFhQJ-NrEQ In this tutorial, you will learn how to use Amazon SES (Simple Email Service) to send emails. Email service is required for all sorts of sites to send transactional and marketing emails. So if you are sending transactional...

read more
How to reset OpenLiteSpeed/LiteSpeed WebAdmin Password?

How to reset OpenLiteSpeed/LiteSpeed WebAdmin Password?

Recently I published an article How to Enable Advanced WordFence Protection on OpenLiteSpeed? Eventually, I realized that some users were trying to access the OpenLiteSpeed/LiteSpeed WebAdmin, but they lacked a password, and I completely missed the instructions for...

read more
How to Enable Advanced WordFence Protection on OpenLiteSpeed?

How to Enable Advanced WordFence Protection on OpenLiteSpeed?

https://youtu.be/mXMncsLhiuU First and foremost, website security should always be a priority. If you have a custom website, you must deal with all the security hacks during the development phase of your website. You have to block all external access and keep all...

read more
How to get Free Let’s Encrypt SSL?

How to get Free Let’s Encrypt SSL?

https://www.youtube.com/watch?v=cOh7owsO7es Several CloudPages users have been inquiring information about how SSL works. Therefore, we wrote this article and made a video so everyone can easily issue Let's Encrypt SSL from CloudPages. In this article, we will...

read more



Submit a Comment

Your email address will not be published. Required fields are marked *


Join Our Newsletter

Pin It on Pinterest

Share This