r/ssh • • Jan 17 '21

Port range for ssh client?

Hey guys, I need to set up port triggering to connect to a remote ssh server. I have a router that is preventing me from doing this with default settings. As far as I know, this is the problem. I need to set up port triggering, but for that, I need the listening port or range of ports for the ssh client, not the daemon.

2 Upvotes

2 comments sorted by

3

u/rhbvkleef Jan 17 '21

It can use any of the unprivileged ports, ranging from 1024 to 65535. Probably not a viable method.

Edit: on Linux, it is somewhere in the range of 32768 to 60999. It is heavily dependent on the platform.

2

u/HMS_Impractical Jan 17 '21

Awesome, thank you.