|
|
10.4: Change the default sshd port
Has anyone managed to set up ssh on multiple ports? I tried following the instructions listed here, but ssh still only listens on port 22. I want it to listen on both port 22 and another that I specify. I've tried stopping and restarting ssh, and I've double and triple checked everything, but I can't figure it out. Thanks!
10.4: Change the default sshd port
Man, I hate it when I post a question and then quickly manage to find the answers myself.... :-)
The trick is to create a secondary plist file as described above, add the extra lines in /etc/services and then remember to do the following: 1) in Terminal.app run
2) if you have OSX's built-in firewall on like I do, make sure to add an entry in System Preferences -> Sharing -> Firewall (tab) for the secondary ssh port3) if you're using a router with firewall, obviously you must route that port as well I managed to forget to do #1 and then #2. Oops! This is useful for me because I have my router send traffic on port 22 to one machine and traffic on the seconday port to my Mac, so when I'm not home I can ssh directly into either machine just by specifying which port I want to use. Sorry about the extra post, everyone... |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|