stevejenkins/unifi-linux-utils

CHANGE PORT SSH

Opened this issue · 1 comments

Hi Stevenjenkins !

How to run your script with another port ssh ?

Thanks

solbu commented

Hopefully you've figured it out by now, but if not and for others who may wonder the same…
in «$HOME/.ssh/config» you can configure another standard port than the default for the unifi server. if the file doesn't exixt, create it.

Lets say your unifi server is at unifi.invalid and the port is 1234, you would put this in .ssh/config

Host unifi.invalid
     Port 1234