Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th June 2012, 13:11
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 197
Thanks: 25
Thanked 60 Times in 44 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
  #2  
Old 10th June 2012, 12:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

http://scottlinux.com/2011/03/16/ssh...fic-ip-ranges/
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
MaddinXx (10th June 2012)
  #3  
Old 10th June 2012, 19:02
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 197
Thanks: 25
Thanked 60 Times in 44 Posts
 
Default

Hi falko

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

Regards
MaddinXx
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix delivery problem erebus Installation/Configuration 8 29th July 2014 20:17
ISPConfig3 won't start after update Cracklefish Installation/Configuration 15 28th February 2012 14:11
500 Internal Server Error BoloMarkIII Installation/Configuration 4 21st October 2010 16:56
proFTPd passive mode problems bisbell Server Operation 8 6th August 2008 21:12
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 22:40


All times are GMT +2. The time now is 21:58.


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