How can I automate port forwarding? Is there a way in which I can automate port forwarding on the mac?

I want to forward a computer to port 22, and my purpose of doing is so I can ssh from a remote location, making ssh easier.

If so, can someone give me the code? Let's say the computer that I want to forward to port 22 (and control via my remote computer) has the ip of 192.168.0.0. What would I write as a command?

How can this happen?

Eric
I'm pretty sure I understand what you are trying to accomplish, but saying "I want to forward a computer to port 22" does not make any sense. You are trying to forward incoming packets addressed for port 22 from your router to your Mac, is what you mean to say (I am assuming). In any event, port forwarding is done in your router's settings, not your Mac's.

You can look up port forwarding steps for your router at http://setuprouter.com/.