From: Eric Bambach <eric@cisu.net>
To: seance83@yahoo.com
Cc: linux-newbie@vger.kernel.org
Subject: Re: Some users locked out of ssh and sftp?
Date: Tue, 1 Mar 2005 19:26:04 -0600 [thread overview]
Message-ID: <200503011926.04903.eric@cisu.net> (raw)
In-Reply-To: <5.1.0.14.1.20050301083357.01f4e340@celine>
On Tuesday 01 March 2005 10:59 am, Ray Olszewski wrote:
> At 08:22 AM 3/1/2005 -0800, Eve Emshoff wrote:
> >This isn't making sense to me. I have users logging in
> >via SSH to a redhat linux box using their network
> >username/password. I'm able to do it as are most
> >others, either locally or remotely. ie:
> >
> >ssh -l eve <ipaddress>
> >or
> >sftp eve@<ipaddress>
> >
> >Thus far, I've run across 1 user who can't sftp OR
> >SSH. He's entirely locked out, despite having the
> >correct username and password. He appears to be set up
> >the same as well the others.
> >
> >Is there a file or some such I should edit and/or
> >check to ensure he can get access? Anything to point
> >me to in terms of what I can check in that he may
> >*not* be set up the same as everyone else?
>
> Ok. First thing to do is get his password and make sure that *you* can ssh
> in using the same userid and password he is using. If you can, then you are
> either seeing some sort of user error or a problem associated with the site
> he is trying to connect *from*. (It's hard to come up with an example of
> the second, but I can imagine that an ISP might block traffic to port 22
> for some reason that does not occur to me ... although if "entirely locked
> out" means he is prompted for a password, then rejected, that example does
> not apply.)
>
> (BTW, what do you mean by "network" username/password? Does this host use
> something other than the standard files /etc/passwd and /etc/shadow for
> userid and password? For example, is NIS involved somehow, or some LDAP
> gimmickry? If so, and if you decide to post a followup, please clarify this
> part.)
>
> (Also, you say "most others" can log in. Is this just caution in reporting,
> or do you have other reports of unexplained failures?)
>
> If you can log in and you want to explore the possibility that the problem
> is NOT user error, then to get help here you'll need to say more about the
> failure he is seeing.
>
> Once you've verified for yourself that the userid/password combo does not
> work for you either, first check that this userid/password combo can do a
> normal shell login. If it can't, try (as root) chainging the password, to
> see if the problem is nothing more than the user having misremembered his
> password. Also check his entry in /etc/passwd to make sure a valid shell
> (/bin/bash, usually) is provided ... it has to be something listed in
> /etc/shells .
>
> If the ssh problem remains after a password change (but the local login
> problem is fixed, or if local logins always worked so you skipped this
> step), the check the sshd config file (not sure where Red Hat keeps this,
> but maybe /etc/ssh/sshd_config ... that's where Debian puts it, anyway) and
> see if something there is interfering. For example, the entry
>
> PermitRootLogin no
>
> blocks root logins via ssh. More generally, the entries
>
> AllowUsers
>
> and
>
> DenyUsers
>
> followed by a pattern or list can restrict which userids are allowed or
> forbidden to ssh in.
>
> These are the easy examples. There is too much more to say ... read the man
> page for sshd_config if you want a general intro ... without a more
> specific indication of what the problem actually looks like (more than
> "entirely locked out", I mean), which could narrow the possibilities.
>
> I've focused on ssh here because it is a bit easier to troubleshoot. But
> all the same considerations should apply to sftp as well ... that is, once
> you get ssh logins working, sftp should also work ... they use the same
> authentication mechanism and tunneling.
Besides all of Ray's perfectly good suggestions I have something to add.
Check the permissions on his/her ~/.ssh directory. If the permissions somehow
became world write/readable ssh will refuse to log that person in. Check the
log files too! If ssh is logging its failures it can tell you a whole lot!
If you can, try running ssh on an alternate port in debugging mode and logging
in as that user. That way you can see where/why ssh is failing.
However, try to log the user in locally first because if its a local problem
then fiddling with SSH wont do anything. Also if its a local problem and you
fix it then SSH should work itself out.
--
----------------------------------------
--EB
> All is fine except that I can reliably "oops" it simply by trying to read
> from /proc/apm (e.g. cat /proc/apm).
> oops output and ksymoops-2.3.4 output is attached.
> Is there anything else I can contribute?
The latitude and longtitude of the bios writers current position, and
a ballistic missile.
--Alan Cox LKML-December 08,2000
----------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next prev parent reply other threads:[~2005-03-02 1:26 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-01 5:50 Sype wont't open Peter H.
2005-03-01 6:21 ` Ray Olszewski
2005-03-01 7:10 ` Richard Adams
2005-03-01 7:13 ` Skype " Peter
2005-03-01 16:22 ` Some users locked out of ssh and sftp? Eve Emshoff
2005-03-01 16:59 ` Ray Olszewski
2005-03-02 1:26 ` Eric Bambach [this message]
2005-03-11 19:20 ` Thought I was mounting drive correctly, but backup failed Eve Atley
2005-03-11 21:37 ` Ray Olszewski
2005-03-11 22:35 ` Eve Atley
2005-03-11 22:54 ` Ray Olszewski
2005-03-11 23:49 ` Eve Atley
2005-03-11 22:56 ` Some users locked out of ssh and sftp? Eve Atley
2005-03-11 23:27 ` SOTL
2005-03-13 23:44 ` SOTL
2005-03-12 0:15 ` Ray Olszewski
2005-03-14 19:17 ` Eve Atley
2005-03-14 19:45 ` Ray Olszewski
2005-03-14 21:54 ` Eve Atley
2005-03-15 0:01 ` SOLVED: " Eve Atley
2005-03-15 0:06 ` Ray Olszewski
2005-03-15 16:16 ` Eve Atley
2005-03-14 19:20 ` Eve Atley
2005-03-12 1:06 ` Marcus Furlong
2005-03-01 6:58 ` Sype wont't open Richard Adams
2005-03-01 8:17 ` Skype " Peter
2005-03-02 2:07 ` Peter
2005-03-02 3:00 ` Ray Olszewski
2005-03-02 5:53 ` Peter
2005-03-02 6:51 ` Richard Adams
2005-03-02 7:33 ` Peter
2005-03-03 6:34 ` Richard Adams
2005-03-03 9:56 ` Peter
2005-03-03 11:25 ` chuck gelm
2005-03-03 16:37 ` Richard Adams
2005-03-01 9:46 ` Sype " chuck gelm
2005-03-01 14:18 ` Richard Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200503011926.04903.eric@cisu.net \
--to=eric@cisu.net \
--cc=linux-newbie@vger.kernel.org \
--cc=seance83@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.