OpenVZ Forum


Home » General » Support » iptables on VE0 to prevent SSH Attacks?  () 1 Vote
Re: iptables on VE0 to prevent SSH Attacks? [message #1645 is a reply to message #1644] Fri, 17 February 2006 18:35 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Yet another approach that I use is to put sshd on a different port.

The good thing is it is very easy to do - just add "Port XXXX" line to your /etc/ssh/sshd_config file/, restayou will never ever be attacked, since most people just blindly try default port and do not do port scanning.

The bad (well, not that bad, just a bit inconvenient) thing is you have to remember this new port number and either put it into your ~/.ssh/config or into ssh command line argument. If you use the same machine to ssh from this is not really a problem - you put it into ssh config once and forget about it. But if you use a lot of machines this can be, well, not very convenient.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: application templates?
Next Topic: Config files
Goto Forum:
  


Current Time: Sat Jul 20 22:30:12 GMT 2024

Total time taken to generate the page: 0.02270 seconds