> For the complete documentation index, see [llms.txt](https://docs.wehost.co.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wehost.co.in/homelab/change-ssh-port.md).

# Change SSH Port

Change SSH Port

```bash
sudo nano /etc/ssh/sshd_config
```

* Change Port Number

#### Restart SSH <a href="#ftoc-heading-5" id="ftoc-heading-5"></a>

For the configuration changes to take effect, restart the SSH service. Run the following command:

```
sudo service ssh restart
```

## Reference

* <https://phoenixnap.com/kb/change-ssh-port>
