Concerned about unauthorised SSH connections to your box? You should be. Use this to restrict who can use SSH..
vi /etc/ssh/sshd_config
and add the line..
AllowUsers andym
That's the user's logon name (not their full name). This way, I will always be able to SSH into your Unix system
Got TWO or more network interfaces? Perhaps it's wise to restrict SSH access to the network adapter which is facing the safe (internal) network. Just add the following line to sshd_config where the IP is the IP Address of the inward-facing network adapter..
vi /etc/ssh/sshd_config
and add the line..
ListenAddress 192.168.0.13
And don't forget to always restart the service after changing its config file..
/etc/rc.d/sshd restart
- A.