# How to change the SSH Port

Navigate to the Neevcloud dashboard to click on the server <br>

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

Now set the password

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

Now open the console

<figure><img src="/files/4X3JBIAy3Pm32crpvlAC" alt=""><figcaption></figcaption></figure>

Now, enter the username and password.

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

Next, open the SSH configuration file and change port 22 to any value between 30,000 and 65,000.

Run the following command to open the ssh file.

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

Now, uncomment the port, remove 22, and set it to any port number.

Also, uncomment the `PermitRootLogin` directive and change its value from `no` to `yes`.

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

Also, comment out the PasswordAuthentication **no** line.

<figure><img src="/files/3qZ4FW0LbceYSFV7vT5P" alt=""><figcaption></figcaption></figure>

After this run the ssh restart command&#x20;

```
systemctl restart sshd
```

Here is the corrected sentence:

* **Now access the server using the changed SSH port.**

<figure><img src="/files/NA2FNSvad0SrRO5pEutZ" 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-change-the-ssh-port.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.
