LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-21-2012, 04:11 AM   #1
Reignfire
Member
 
Registered: Jun 2012
Posts: 56

Rep: Reputation: Disabled
Can't get ssh access for new user


Hi,

After i created a new user i tried to login with ssh but it failed.

I did:

Code:
useradd name
passwd name

mkdir /home/name
chown name:users /home/name
Then when i SSH i get the following:

Code:
debug3: packet_send2: adding 64 (len 60 padlen 4 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
I also added the user to allowusers on sshd_config. What did i do wrong?
 
Old 08-21-2012, 04:25 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

I can't see anything obviously wrong with your setup. You should check what sshd is logging, this will typically provide more useful information than the ssh cclient. On a Debian derived system this would be in /var/log/auth.log

A couple of other things to check: can you confirm that sshing the same way works with an "old" user? Also, are you able to log in locally (or su -l to) with the new user?

Evo2.
 
Old 08-21-2012, 04:39 AM   #3
Reignfire
Member
 
Registered: Jun 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
It's okay now, it thought i didn't had to reload the ssh service but that made it work.

Quote:
Originally Posted by evo2 View Post
Hi,

I can't see anything obviously wrong with your setup. You should check what sshd is logging, this will typically provide more useful information than the ssh cclient. On a Debian derived system this would be in /var/log/auth.log

A couple of other things to check: can you confirm that sshing the same way works with an "old" user? Also, are you able to log in locally (or su -l to) with the new user?

Evo2.
 
Old 08-21-2012, 04:44 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

Quote:
Originally Posted by Reignfire View Post
It's okay now, it thought i didn't had to reload the ssh service but that made it work.
Ahh, yes that would happen if you already had AllowUsers line in your sshd_config

Anyway, glad it is working.

Evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Restricting a user account from SSH access ciphyre Linux - Security 18 12-28-2008 12:04 PM
restricting user access with ssh rob_xx17 Linux - Security 4 01-05-2006 07:22 PM
only FTP access to user not ssh or telnet farhank Linux - Security 3 10-27-2005 10:30 AM
ssh access allowed only to root user? zovres Linux - Newbie 5 09-25-2003 05:19 PM
SSH user IP restricted access??? ifm Linux - Security 3 07-21-2002 12:01 PM


All times are GMT -5. The time now is 10:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration