Solved

Urgent : Account Can't login on ssh (linux)

Posted on 2011-09-23
7
381 Views
Last Modified: 2012-08-14
Hi,

an account can't login on the  server via ssh. what can i do?? what are the different steps to troubleshoot it on linux.

the account is a service account used by an application.
0
Comment
Question by:cismoney
7 Comments
 
LVL 7

Expert Comment

by:gnurl
ID: 36586248
Hi, try
ssh -vvv <user>@<host> to get more information about the problem.

Check the log files an the server itself maybe /var/log/messages..


Good luck

gnurl
0
 
LVL 5

Expert Comment

by:balasundaram_s
ID: 36587971
That account (user id) might be expired, check using the following command

# chage -l  userid

Use 'man chage' for more info.
0
 
LVL 9

Expert Comment

by:parparov
ID: 36588299
If the connection is being established, consult /var/log/auth* or /var/log/secure* for details.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:cismoney
ID: 36591486
question :

@balasundaram : If the user account is expired , what is the command to reactivate it.
0
 
LVL 5

Expert Comment

by:hossamshaaban
ID: 36592056
chage -d currentdate username
0
 

Author Comment

by:cismoney
ID: 36598626
i can't see the informations when i use chage. May be because its a service account
0
 
LVL 2

Accepted Solution

by:
KishorDas earned 500 total points
ID: 36707787
For most of the service account, they are configured with no login shell, when you are trying to have a remote login, that is why it creates problem. Assign a login shell for that user account and then retry.

Thanks.

Kishor Kumar Das
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question