> 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>
