LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-31-2013, 08:15 AM   #1
DeltaCharlieBravo
LQ Newbie
 
Registered: Oct 2013
Posts: 3

Rep: Reputation: Disabled
Locked Out of SSH Due to Invalid SSHD Config


Hi folks,

I'm relatively new to Linux and made a mistake when editing the sshd config on a server. The server had something set for AllowGroups which was a group that I was not part of. I thought I could easily solve this by adding in a line for AllowUsers and added my user into it.

However, I can see now that I erred in my ways as this does not set things up to allow people SSH access who are part of the group OR the users, instead it only allows somebody who is both a member of the group AND the user listed.


I'm guessing there is nothing I can do about this now but figured I would ask anyways.


Fortunately this is a physical server so once I'm back onsite I believe I should be able to login via the console without having to rely on SSH and fix the issue. However, I'm wondering if there is anything I can do in the short term before I'm back onsite there.


If anybody can assist it would be greatly appreciated.



Key Takeaway: Don't log out of an SSH session before verifying the changes made will work. Lesson learned.
 
Old 10-31-2013, 08:31 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I think you answered this yourself, you will have to change the settings from a local console.
FWIW, you are not the first one that learns this lesson the hard way (happened at least to me also) and you won't be the last person with that problem.
 
Old 10-31-2013, 09:06 AM   #3
DeltaCharlieBravo
LQ Newbie
 
Registered: Oct 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
That was what I expected but figured I would check in any case.

At least this isn't a headless server without access to the console, that would have made things much more frustrating...this is just an inconvenience!


Thanks for your reply.
 
Old 11-01-2013, 02:08 PM   #4
DeltaCharlieBravo
LQ Newbie
 
Registered: Oct 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Fixed this today via the console. Fortunate this was an option!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Short tut on ssh keys and sshd config - checks for accuracy? tallship Slackware 10 07-02-2011 01:40 PM
ssh / sshd config: how enable "tunneling with port forwarding on the network"? frenchn00b Linux - Server 1 08-30-2009 02:57 PM
Installed Freenx. Changed sshd config. Can't ssh root. CrewXp Linux - Software 1 08-13-2007 05:52 AM
How to change ssh banner in sshd.config pAn1k Linux - Networking 2 03-24-2005 05:46 PM
sshd/ssh config for local forwarding ewlnxnewB Linux - Networking 2 11-04-2003 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration