10 Comments

5h4rk Said,
November 29th, 2006 @5:49 pm  

Beatiful, easy and simple to understand fot newbies like me :)
Thanks

mygif
chort Said,
November 30th, 2006 @10:10 am  

Everything that is commented-out is the default, so changing:
#PermitEmptyPasswords no
to
PermitEmptyPasswords no
is useless.

Also, when changing the Port use something higher than 1023 to avoid conflicting with reserved ports for other services.

mygif
adam k Said,
November 30th, 2006 @10:19 am  

@chort:

You’re right in the sense that it’s useless because it is set to “no” by default, but I still decided to include it because some people may be allowing empty passwords. Just wanted to let you know that I thought about the “uselessness” prior to posting.

Thank you for your input. :)
Great tip on setting the port higher than 1023, I should have mentioned that.

mygif
KrĂ­gl Said,
December 11th, 2006 @11:49 pm  

It should be mentioned that changing ssh port is useful only if you can afford it, i.e. if only you and several other trusted people use the machine, security through obscurity might be fine, but setting up strong password (or key along with disabling passwords) is still much more important.
Without it, security through obscurity will on the contrary become much more risky. One aggressive scan will tell attacker anyway and against botnets are abovementioned methods of disabling root login and reducing number of logging tries and permitted users much better.

Last but not least - any script kiddie worth it’s h4xx0r l33tness will try some obvious ports like 2200 or 22222 while your users, if logging remotely twice in a year, may easily forgot that 13654 port and end up scanning the machine for it.

Btw. I hope this system hides email, when it’s required, if it is so, it’s fine to mention it, so less people will submit some nonsense like I did.

mygif
April 9th, 2007 @3:58 pm  

In your sshd_config file you may also want to limit the LoginGraceTime parameter. I have a small writeup at:
http://timarcher.com/?q=node/46

mygif
Pingback & Trackback
December 7th, 2007 @4:13 pm  
mygif

Random Post

Leave Your Comments Below

Please Note: All comments will be hand modified by our authors so any unsuitable comments will be removed and you comments will be appreared after approved