I'd like to turn on SSH on my Mac so I can access it from work. To keep
things as secure as possible I'd like to only permit access from one IP
address (my work computer) and block SSH access from all others.
This doesn't seem possible with the GUI firewall tools. Is it possible to
do this on the command linem or do I have to buy third party firewall
software?
I have read the man page for ipfw and it's mostly Greek to me.
If it is indeed possible on the command line, two questions:
1) How do I undo it if I need to
2) Would opening the Firewall pref pane override any settings I had set
with the command line?
Thanks for any help.

Signature
K.
Lang may your lum reek.
> I'd like to turn on SSH on my Mac so I can access it from work. To keep
> things as secure as possible I'd like to only permit access from one IP
[quoted text clipped - 11 lines]
> 2) Would opening the Firewall pref pane override any settings I had set
> with the command line?
This isn't a direct answer to your question, but you could always just
add this to your /etc/sshd_config file:
AllowUsers you@your.domain.com
Keep in mind doing this restricts access to SSH even from computers on
your home LAN. So you'll want to add entries for that domain as well.

Signature
JR
Tom Stiller - 28 Feb 2007 12:54 GMT
> > I'd like to turn on SSH on my Mac so I can access it from work. To keep
> > things as secure as possible I'd like to only permit access from one IP
[quoted text clipped - 19 lines]
> Keep in mind doing this restricts access to SSH even from computers on
> your home LAN. So you'll want to add entries for that domain as well.
You could also opt for a stronger form of SSH authentication (e.g.
public keys). Doing so restricts access to those machines which have
exchanged keys (e.g. sneakernet or physicak interconnect) prior to any
connection attempt.

Signature
Tom Stiller
PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3
7BDA 71ED 6496 99C0 C7CF