-
-
Save masak2009/294699 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In order to change the port on Mac OS-X for your SSH daemon, follow the following steps: | |
====== HOW TO CHANGE SSH PORT on OSX Snow Leopard =========== | |
Open Terminal and as edit the file /etc/services (as root) | |
Add a line at the bottom: | |
secret-ssh 43539/tcp # secret SSH port | |
Edit file /System/Library/LaunchDaemons/ssh.plist and replace the code: | |
<key>SockServiceName </key> | |
<string>ssh </string> | |
with | |
<key>SockServiceName </key> | |
<string>secret-ssh </string> | |
Open Sharing control panel and ensure that Remote Login is checked off (if not uncheck it). Then check it again to start with the new configuration. | |
Now you should be able to run SSH command to your external IP as follows: | |
ssh -p 43539 ip_address_of_your_server -l username | |
http://serverfault.com/questions/18761/how-to-change-sshd-port-on-mac-os-x/67616#67616 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment