Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Tunnelling?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Tunnelling?
Authored by: grrl_geek on Nov 11, '03 07:01:37PM

Easily enough. Change the port SSH is listening on for one of your Macs.

To do this, edit the /etc/sshd_config file (you will need to have root privs to do this ).

You'll see a line that says
#Port 22

Delete the hash mark and change the number, so you get this:
Port XXXX

where XXXX is the number you want to listen on. I use 2222, for example.

SSH can listen on multiple ports at one. I do this on my Linux box. It listens on both the standard 22 port and on 2222. On the LAN side, I can connect to either. On the Internet side, I have my router only forward the 2222 port, to confuse the script kiddiez.

To do this, you need to have two lines in your sshd_config file:

Port 22
Port 2222

---
~~~~~~~~~~~~~
Sinker sucker socks pants, apocryphal awry!



[ Reply to This | # ]
Tunnelling?
Authored by: pwharff on Nov 14, '03 02:36:35AM

Wow, I never thought of doing that, but it's such a great idea. How do I restart services in Mac OS X. I know how to do this in Linux.



[ Reply to This | # ]
Tunnelling?
Authored by: pwharff on Nov 14, '03 02:43:35AM

Changing Port to Port 2222 and uncommenting doesn't seem to be working. I even restarted the other computer and port 22 isn't even suppose to work, just port 2222 and port 2222 isn't working, yet port 22 still is. I've restarting "Remote Login" in the preference pane and that didn't work either. Somethings just wrong and I don't even know if OS X is even looking at the "sshd_config" file. Anyone have a clue on how to change the standard ssh port to something else besides 22?



[ Reply to This | # ]