How to : use ssh to remote login
You have to log onto your router and enable port forwarding.
Assign your computer a static internal (i.e. 192) IP, and then port
forward any incoming traffic on port 22 to that IP. With ADSL
you cannot route to a 192 IP directly. It is a non-routable IP
(from the web - i.e. not a public IP) hence why it provides a home
system with an added layer of protection. Anyone wishing to get to it
from the Internet MUST first go through the router in front of it
which has your public IP assigned by the ISP.
If you have a static IP then use that.
If not then use a service such as DYNDNS
http://www.dyndns.com/services/
to get one of their domain names
(i.e. whatever.homemac.com) and configure your router to update
DYNDNS whenever your IP changes. If your router cannot do that, there
are some Mac? tools that will do it (DYNDNS will suggest some).
This way you ssh to user whatever homemac.com (putting in the
appropriate username and domain name of course).
The other consideration will be to disable root login (so someone can't ssh as
root and get su control of your box - note this appears to be case
sensitive. I had "No" in my config file and it wouldn't accept it,
had to be "no"), and even consider using a key instead of a password
challenge (best to have the key on a thumb drive that you keep with
you instead of putting it on your office computer for anyone to
copy/use). But I wouldn't worry about that one right away. Get it to
work as normal password login first. Then check out openssh
documention on the web to figure out how to tweak it.
Comments (0)
You don't have permission to comment on this page.