Gentoo Archives: gentoo-user

From: Daevid Vincent <daevid@××××××.com>
To: gentoo-user@l.g.o
Subject: RE: [gentoo-user] Newly created user can't ssh in but others can? [SOLVED]
Date: Fri, 17 Nov 2006 22:31:41
Message-Id: 200611172223.kAHMNOM3004732@robin.gentoo.org
In Reply to: Re: [gentoo-user] Newly created user can't ssh in but others can? by Michael Sullivan
1 YES! That was it.
2
3 Thanks so much for everyone's ideas and help. Long story short, just doing
4 'adduser' was sufficient. I didn't need a ".ssh" directory. I didn't need to
5 add to any groups. /var/log/messages was useless as it didn't show a single
6 blip about ssh.
7
8 I forgot I had 'locked down' my server and this is the solution:
9
10 Edit /etc/ssh/sshd_config
11 Add the user to the "AllowUsers" option list.
12 /etc/init.d/sshd restart
13
14 DÆVID
15
16 > -----Original Message-----
17 > From: Michael Sullivan [mailto:michael@××××××××××××.com]
18 > Sent: Friday, November 17, 2006 1:04 PM
19 > To: gentoo-user@l.g.o
20 > Subject: Re: [gentoo-user] Newly created user can't ssh in
21 > but others can?
22 >
23 > On Fri, 2006-11-17 at 12:02 -0800, Daevid Vincent wrote:
24 > > I have had my server for several years, I haven't added a
25 > new user in
26 > > probably 6 months or more. I tried to add one last night
27 > and all seemed
28 > > fine. However it can't login via ssh (not at a console, so
29 > I don't know
30 > > about that way) but existing accounts can.
31 > >
32 > > I've tried changing the passwd to 'foo' (just something
33 > simple) and I keep
34 > > getting the "Password:" prompt over and over. But if I ssh
35 > in to say, my
36 > > account, it works fine.
37 > >
38 > > Ideas?
39 > >
40 > > /home looks like:
41 > >
42 > > drwxr-xr-x 4 joe users 4096 Nov 17 11:42 joe
43 > > drwx--x--x 29 daevid users 4096 Nov 17 02:08 daevid
44 > >
45 > > daevid home # passwd joe
46 > > New UNIX password: 'foo'
47 > > BAD PASSWORD: it is WAY too short
48 > > Retype new UNIX password: 'foo'
49 > > passwd: password updated successfully
50 > >
51 > > daevid home # ssh joe@localhost
52 > > Password: 'foo'
53 > > Password: 'foo'
54 > > ...
55 > >
56 > > daevid home # ssh daevid@localhost
57 > > Password: 'secret'
58 > > Last login: Fri Nov 17 11:46:06 2006 from daevid.com
59 > > daevid@daevid ~ $
60 > >
61 > >
62 > > ÐÆ5ÏÐ
63 > >
64 >
65 > Just a guess, but is your new user listed in AllowUsers in sshd
66 > configuration?
67 >
68 > --
69 > gentoo-user@g.o mailing list
70 >
71 >
72
73
74 --
75 gentoo-user@g.o mailing list