Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Is regular_user_2 logging in remotely? Maybe something is lost in the translation, but that is the second post where is seems you are logging in locally instead of remotely. Try logging in with the "-vv" verbose option. It will indicate the authentication used. This is displayed at the client. Also look at your logs in the server.
I wonder if the problem has to do with PAM. I would recommend using PubKey authentication in any case and only using PAM for session control.
The instructions should be given in the comments just above the "UsePam Yes" line of /etc/ssh/sshd_config.
Also check the sshd script. Does it use an option which loads in the configuration from a different file?
No. regular_user_2 logs in locally, as every other log into my machine, which doesn't belong to a LAN. More specifically, the whole system consists of a simple home desktop computer. Therefor, any attempt at logging in shall have to be through the console or from the ISP. Also, I'm the only physical user. As to the -v option for login, he does not like it (i don't know if there are several versions of login in linux, but I could contact the author). I thought if I made a syntax error in sshd_config, I could see something in /var/log/messages. But I didn't. I'll rename the configuration file and this will make sshd unable to start. Then I'll know he is reading it.
PAM: I've followed your suggestion about Pubkey and PAM.
The sshd script: No. It doesn't. rc.sshd invokes sshd with
no options, in particular no -f option. So, sshd should read /etc/ssh/sshd_config, the default path for the configuration file for sshd.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.