> For the complete documentation index, see [llms.txt](https://docs.neevcloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.neevcloud.com/neevcloud-guide/troubleshoot/how-to-access-instances/access-with-password-authentication.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
