HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   SSH: Key Auth from everywhere, Password allowed IP only (http://www.howtoforge.com/forums/showthread.php?t=57586)

MaddinXx 9th June 2012 13:11

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

falko 10th June 2012 12:29

http://scottlinux.com/2011/03/16/ssh...fic-ip-ranges/

MaddinXx 10th June 2012 19:02

Hi falko

Thank you for the link! Exactly what I was looking for :)

Regards
MaddinXx


All times are GMT +2. The time now is 23:16.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.