|
|
Change the default SSH server port on 10.3
I don't think changing port numbers in /etc/services is a good idea. The approach of modifying /etc/xinetd.d/ssh is much cleaner. In addition to the added '-p xxx' flag for the server_args parameter (which tells the sshd server what port to use) you also need to let xinetd know which port to use. You can do that by adding a line 'port = xxx' to /etc/xinetd.d/ssh.
Change the default SSH server port on 10.3
I tried adding the "-p 8855" to the args, with no success (see the original hint).
Change the default SSH server port on 10.3
xinetd will barf out if you don't use the same port for a services as listed in the services file. IIRC. Well, not really barf out, just run the service on the port listed in the services file and not the port you are trying to force it with.
Change the default SSH server port on 10.3
As it's xinetd that's listening for connections, only it needs to be told a different port number. In addition to the line "port = 12345" (for whatever port number you want), you need to add the line "type = unlisted", otherwise xinetd will check the /etc/services file and make sure the port number matches. The error will show up in /var/log/system.log as "Service ssh expects port 22, not 12345".
Change the default SSH server port on 10.3
I used to run ssh on two port simultaneously. The standard port 22 and another one for convenience since many NetAdmins at my clients block port 22 (both inbound but more annoyingly outbound).
Change the default SSH server port on 10.3
I tried this, and it didn't work for me on 10.3.8 |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks 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.09 seconds |
|