LinuxQuestions.org
Help answer threads with 0 replies.
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 08-21-2012, 03: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, 03:25 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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, 03: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, 03:44 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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



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

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

All times are GMT -5. The time now is 03:21 PM.

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