# Allow SSH Port to Specific IP Address

## Allow SSH Port to specific IP addresses

Navigate to the dashboard, click on the server, and open your instance.

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

## Create security group

Click on the security group&#x20;

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

### Check the rules

Click on the view and open the Add Rule section&#x20;

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

### Delete the default rules

Here we can see all ports and protocols allowed to all IPs (CIDR: 0.0.0.0/0).

<figure><img src="/files/8xcKF1ARQuFePY2svwTs" alt=""><figcaption></figcaption></figure>

But we want to allow the port to a specific IP so delete all the ingress and egress \
Click on the add rule

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

## To add custom rules for SSH

### Get your public IP&#x20;

To add the rule, first search for your public IP on Google by clicking on this [Link.](https://www.google.com/search?q=my+ip+address\&oq=my+ip+\&gs_lcrp=EgZjaHJvbWUqDggAEEUYJxg7GIAEGIoFMg4IABBFGCcYOxiABBiKBTIMCAEQABgUGIcCGIAEMgcIAhAAGIAEMgcIAxAAGIAEMgcIBBAAGIAEMgYIBRAFGEAyBggGEEUYPDIGCAcQRRg80gEIMTQ3MGowajmoAgCwAgE\&sourceid=chrome\&ie=UTF-8)

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

Copy your public IP and the following IPs to add to the CIDR section of the rule.

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

### **Allow the SSH port to follow these steps**

Rule :- custom protocol

Description:- ssh\_port\_allow

Direction: Allow ingress and egress to one by one

Open Port:- Port

Port Number:- 22

Protocol: TCP

Remote: select CIDR

CIDR:- your internet public IP&#x20;

Ether type:- IPv4

Now click on the add rule

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

Same as the egress rul&#x65;**.**

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

After adding the ingress and egress rule to check security group rules

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

## SSH Specific IP

Now access the instance

<figure><img src="/files/3hm3XiZq5queKSs0lz1I" 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-products/networking/security-groups/allow-ssh-port-to-specific-ip-address.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.
