> 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-products/networking/security-groups/allow-ssh-port-to-specific-ip-address.md).

# 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="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FLZc09TmUUIxwcqtZXtNW%2Fimage.png?alt=media&amp;token=65f2163d-fd0a-4f1c-97b8-3d9cc03e04fa" alt=""><figcaption></figcaption></figure>

## Create security group

Click on the security group&#x20;

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FtgmQ0uRyKMsD8zl1TjmG%2Fimage.png?alt=media&amp;token=f4b6014d-f9c9-40fa-91cf-997aab765097" alt=""><figcaption></figcaption></figure>

### Check the rules

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

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FiYeuoODVZyURBQYZKMkK%2Fimage.png?alt=media&amp;token=0930d3de-5962-4a3d-ba69-1e7476960ed4" 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="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FALbY2olh5YtiyzWIzrax%2Fimage.png?alt=media&amp;token=ecdc633c-3ee4-4698-a6b9-f0a1abcc5642" 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="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FkCgAMWCF4MQyiNqLb2QC%2Fimage.png?alt=media&amp;token=c1425f2d-9db7-4e44-b721-0c4030d8f2f7" 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="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2F9PjnGdhtt9FNI3Def7PV%2Fimage.png?alt=media&amp;token=69400388-84aa-452a-a891-769d287ccd7e" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2F9vE9zMKVerp4YDiEsyDg%2Fimage.png?alt=media&amp;token=d9abb8ae-12db-410d-a454-23955cf2424e" 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="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FWphHvLj6IWhwc2bpDfTP%2Fimage.png?alt=media&amp;token=63f3556e-55a0-4616-aa40-3716b631046a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FiraaViAU5tWyhoFKSMMC%2Fimage.png?alt=media&amp;token=06772ba1-9807-460d-98fb-d3743d2c5778" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FFlfGuNkOTAxGO03yMkn8%2Fimage.png?alt=media&amp;token=b08c6a15-9857-45cf-aa23-91b591a68891" alt=""><figcaption></figcaption></figure>

## SSH Specific IP

Now access the instance

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2F2A3Di7VCMRdmCVBKP4Dp%2Fimage.png?alt=media&amp;token=3bb24426-71ce-4ecf-9b36-6f3f54b911b6" alt=""><figcaption></figcaption></figure>
