LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-21-2009, 11:24 PM   #16
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76

CORRECTION: I only want to see if I do not understand the manual or the system, in admitting regular_user_2 logins, is
malfunctioning. Thanks.
 
Old 05-22-2009, 08:18 AM   #17
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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?
 
Old 05-23-2009, 12:46 AM   #18
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
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.

Most respectfully, E.S.
 
Old 05-23-2009, 08:16 PM   #19
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
ssh is only for remote logins. The local logins do not use it, by default.
In fact, even for remote logins you have to specify ssh ie

ssh user@system

Of course you can do that from the local console, but that would be very unusual.

To disable a user's acct, either temporarily or permanently, see http://www.networkdictionary.com/software/Linux325.php

Incidentally, there are a lot of bot scripts trying to brute force root logins via ssh, so best to set

PermitRootLogin no

in /etc/ssh/sshd_config and restart sshd:

service sshd restart

Last edited by chrism01; 05-23-2009 at 08:18 PM.
 
Old 05-26-2009, 11:02 AM   #20
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Most kind of you, chrism01. It's very clearly stated in ssh man page and I've made a fool of myself. Sorry for the delay.

E.S.
 
  


Reply



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
User session opened and closed msg in /var/log/messages andiramesh Linux - Newbie 9 09-05-2008 05:47 AM
/var/log/messages and /var/log/cron not working sigkill Linux - Software 6 08-09-2008 01:08 PM
Very Urgent! Strange msg in /var/log/messages sathyguy Linux - Newbie 3 07-27-2006 04:07 AM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM
strange logs in /var/log/messages dominant Linux - Security 1 04-21-2004 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:50 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