View Single Post
  #1  
Old 9th June 2012, 14:11
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 200
Thanks: 26
Thanked 65 Times in 48 Posts
Question SSH: Key Auth from everywhere, Password allowed IP only

Hi everyone

I recently installed a CP for managing my VPS which requires root login (yep, that's bad..).

To keep the server more or less secure, I would love to have the following:

- Is it possible, that you allow key based auth from everywhere for user root
BUT
- password based auth for user root only from defined IP/Subnet?

I read about the match statement in sshd_config, but I couldn't figure out how to do it correctly.

Help is really appreciated

Thank you,
Regards,
MaddinXx
Reply With Quote
Sponsored Links