The ports that need to be forwarded for SSH are listed here:
SSH - PC
- TCP: 22
- UDP: 22
Forward Ports for SSH
When you use SSH you may need to forward ports in your router. Forwarding ports is used to allow incoming connection requests from the internet to SSH.
Routers are not designed to allow incoming network requests. Forwarding ports can work around this limitation.
Remember to Do These Things Before You Forward a Port
Before you can forward a port you need to know the following things:
- The IP address of your router.
- The internal IP address of your computer.
- Each of the TCP and UDP ports that you need to forward.
Find the IP Address of Your Router
The easiest way to locate your router's IP address is to run our free Router Detector utility. Our Router Detector tool is free to use and is part of our Network Utilities software.
We have a guide you can follow Find Your Router IP Address if you don't want to run the software.
Setting Up a Port Forward for SSH
The easiest way to forward your ports is to use our Network Utilities software. Since Network Utilities allows you to both forward and un-forward ports easily you can keep your network security maximized, and then forward ports only when you need them.
Alternatively you can do it by hand. The process for forwarding a port is:
- Log in to your router.
- Locate your routers port forwarding section.
- Put the IP address of your computer in the proper box in your router.
- Enter the TCP and UDP ports that you need to forward for SSH in the corresponding boxes in your router.
Some routers need to be rebooted in order for the changes to be saved.
You can choose your router from our list to see exactly how to forward ports for SSH:
List of Routers - Customized for SSH
That's all it takes to forward your ports for SSH.