stevejenkins / unifi-linux-utils

Helpful Linux / Unix scripts for admins of Ubiquiti (UBNT) UniFi wireless products
https://www.stevejenkins.com/blog/tag/unifi/
MIT License
695 stars 127 forks source link

CHANGE PORT SSH #22

Open songhanpoo opened 6 years ago

songhanpoo commented 6 years ago

Hi Stevenjenkins !

How to run your script with another port ssh ?

Thanks

solbu commented 4 years ago

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