Solved

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

Posted on 2011-09-23
7
377 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
Comment Utility
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
Comment Utility
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
Comment Utility
If the connection is being established, consult /var/log/auth* or /var/log/secure* for details.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:cismoney
Comment Utility
question :

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

Expert Comment

by:hossamshaaban
Comment Utility
chage -d currentdate username
0
 

Author Comment

by:cismoney
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to gracefully close the c++ 11 thread? 3 65
Write an app 10 61
Problem logging tar errors 11 35
Linux Scripting 3 39
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now