SSH access problems: Can only allow users SSH access by adding to root group
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
SSH access problems: Can only allow users SSH access by adding to root group
Running Slackware 11.0.
I'm trying to allow a user ssh access to their home directory, but something is configured so that only users in the root group are allowed ssh access. I've looked through the sshd_config file, and nothing sticks out to me. I've tried adding the line AllowUsers user1 user2 etc... but that has no affect on ssh access. Beyond that, I really have no idea where to look...
I've tried googling the issue but haven't been able to find any answers...
Can you post the relevant lines from your sshd_config file (meaning, no comments)? Remember to use the [code] tags to make it more readable for everyone else.
I'm trying to allow a user ssh access to their home directory, but something is configured so that only users in the root group are allowed ssh access.
What does that mean, exactly? If a user who is not in the root group tries to ssh to the server, can he authenticate at all?
If a user is not in the root group and I try to ssh in via Putty. The putty session window just closes. It doesn't give any warnings, just kills putty...
What does that mean, exactly? If a user who is not in the root group tries to ssh to the server, can he authenticate at all?
If a user is not in the root group and I try to ssh in via Putty. The putty session window just closes. It doesn't give any warnings, just kills putty...
Try to ssh from the command line the first time. The first time that you ssh to a particular host it will ask you to confirm that you want to add the host to your list and exchange keys.
The putty session window just closes. It doesn't give any warnings, just kills putty...
You're going to need to check the server logs for clues then. I don't know how Slackware does it, but on a RHEL/CentOS box, in sshd_config the directive SyslogFacility AUTHPRIV is set by default. Then, in /etc/syslog.conf, authpriv.* logs to /var/log/secure.
Determine where sshd is logging to on your Slackware system and tail that log during your next login attempt.
Pardon me if I have completely missed something, but maybe a fresh perspective, even a confused one, will help.
First, since you are using Putty I assume you are attempting to login from an M$ machine to the Slackware box. Is that correct? If so, you should first look at the logs or messages or whatever such there is on the M$ machine - it is not at all obvious that the shutdown results from something wrong on the Slackware box.
As BCarey said, can the user login from the command line, like from the same box or from another *nix box? That would be the first big clue - get Putty out of the picture and troubleshoot the basic SSH config. So if you have access to the Slackware box, what happens if you simply try to ssh as one of those normal users on the same box? That will at least give you a clean, single event type log record.
I'm trying to allow a user ssh access to their home directory, but something is configured so that only users in the root group are allowed ssh access. I've looked through the sshd_config file, and nothing sticks out to me. I've tried adding the line AllowUsers user1 user2 etc... but that has no affect on ssh access. Beyond that, I really have no idea where to look...
I've tried googling the issue but haven't been able to find any answers...
I would appreciate any help.
Thanks
unless your running really old hardware there is no reason to be running such an old version of slackware
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.