public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Ray Olszewski <ray@comarre.com>
To: linux-newbie@vger.kernel.org
Subject: Re: Some users locked out of ssh and sftp?
Date: Tue, 01 Mar 2005 08:59:33 -0800	[thread overview]
Message-ID: <5.1.0.14.1.20050301083357.01f4e340@celine> (raw)
In-Reply-To: <20050301162252.34857.qmail@web53710.mail.yahoo.com>

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.


-
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

  reply	other threads:[~2005-03-01 16:59 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 [this message]
2005-03-02  1:26       ` Eric Bambach
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=5.1.0.14.1.20050301083357.01f4e340@celine \
    --to=ray@comarre.com \
    --cc=linux-newbie@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox