# Access with Password Authentication

Before changing the password authentication switch the root user

```
sudo su 
```

<figure><img src="/files/nrylfZDOP8V6IqX8JfJf" alt=""><figcaption></figcaption></figure>

Navigate to the **/etc/ssh/sshd\_config**

Use the vi editor to edit the file&#x20;

```
vi /etc/ssh/sshd_config
```

<figure><img src="/files/xaFIxVU0F36qsQsNblN7" alt=""><figcaption></figcaption></figure>

Change  PermitRootLogin prohibited\_password > PermitRootLogin yes&#x20;

PasswordAuthentication  **yes**

<figure><img src="/files/IS3CgS8AfyffH56QX3pX" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The below step applies only to Ubuntu 22.04
{% endhint %}

Now again Navigate to the **/etc/ssh/sshd\_config.d/60-cloudimg-settings.conf**

```
vi /etc/ssh/sshd_config.d/60-cloudimg-settings.conf
```

Change PasswordAuthentication no > yes&#x20;

<figure><img src="/files/kKfYEw7tVUuJTkZFoar7" alt=""><figcaption></figcaption></figure>

Restart the SSHd service

```
systemctl restart sshd
```

Now set the password for the root user:

```
sudo password root
```

set the password&#x20;

<figure><img src="/files/MOFSPLzqTeBp5mUysSrD" alt=""><figcaption></figcaption></figure>

Now log in to the server with the root user

ssh root\@Your\_server\_IP\_add

<figure><img src="/files/Lg1B3brmL6OuEmWhnnfx" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.neevcloud.com/neevcloud-guide/troubleshoot/how-to-access-instances/access-with-password-authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
