LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-24-2017, 10:48 AM   #1
bobbyjoehall
LQ Newbie
 
Registered: Apr 2017
Posts: 5

Rep: Reputation: Disabled
Ssh login locked


Debian jessie in linux deploy will not let me login via ssh user locked and I used the right password still won't allow me to connect please help
 
Old 04-24-2017, 12:08 PM   #2
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,781

Rep: Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199
Maybe password aging is activated?
Read about it
Code:
man chage
As root on the system, run
Code:
chage -l userid
and change the expiration date to none or a new one.
Maybe the pam_tally is activated?
Read about it
Code:
man pam_tally
man pam_tally2
As root on the system, try to reset it with
Code:
pam_tally2 -u userid -r
pam_tally --user userid --reset
 
Old 04-24-2017, 04:11 PM   #3
bobbyjoehall
LQ Newbie
 
Registered: Apr 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Still don't work

I still can't get it to work no pam tally or chage
 
Old 04-25-2017, 12:44 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by bobbyjoehall View Post
I still can't get it to work no pam tally or chage
please take a moment to consider:
MadeInGermany took quite some effort to help you with your problem; now compare that to your answer.
I think you are going to have to do better than that if you want to get to a solution for your problem.

technically:
"don't work" is NEVER a sufficient answer.
show us what you tried, full commands, and their output.
PLUS anything else you could think of might be relevant.
info about your environment etc.
 
Old 04-25-2017, 04:26 AM   #5
bobbyjoehall
LQ Newbie
 
Registered: Apr 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Im trying to learn linux and for a year now I have barely learned how to finall get debian jessie to plenty and allow ssh login .but now I can't get root password to work it says permission denied and now it says account 'user' is locked.how and I supposed to troubleshoot when I can't even get any comnands to work .im running got touchpad cyanogen morning cm11 and linux deploy debian jessie
 
Old 04-25-2017, 04:33 AM   #6
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,295
Blog Entries: 3

Rep: Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719
Do you have console access? Or is the only access via SSH? If you have console access then you can watch the logs while you try to log in via SSH.

Code:
tail -f /var/log/auth | grep sshd
There should be some clue there as to the actual error.
 
Old 04-25-2017, 08:33 PM   #7
bobbyjoehall
LQ Newbie
 
Registered: Apr 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Every time I try to connect with ssh with terminal it says permission denied im using the right password now its locked to many password entries what's do I do if I can't get sudo
 
Old 04-25-2017, 08:35 PM   #8
bobbyjoehall
LQ Newbie
 
Registered: Apr 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
What's do u mean console access? Terminal emulater?
 
Old 04-25-2017, 08:38 PM   #9
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,295
Blog Entries: 3

Rep: Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719
The console is the display and keyboard, usually serial, that are physically attached to the computer. The terminal is just a program you run on your local machine that may contain programs, like SSH clients, to connect to other machines or to work locally.
 
Old 04-26-2017, 12:10 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by bobbyjoehall View Post
I can't even get any comnands to work .im running got touchpad cyanogen morning cm11 and linux deploy debian jessie
now i remember! :facepalm:
linux deploy is an app to run linux distros on android devices.
me, i never got it to work (but i didn't try very hard).
maybe this can help:
https://github.com/meefik/linuxdeploy/issues
 
Old 04-26-2017, 04:33 AM   #11
624867243@qq.com
Member
 
Registered: Nov 2015
Location: ShenZhen
Posts: 33
Blog Entries: 1

Rep: Reputation: Disabled
try other way:

try this:

Code:
useradd newuser
passwd newuser 

visudo

newuser  ALL=(ALL) NOPASSWD:ALL
try to user newuser to login,then :
sudo su -
swich to root.
 
  


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
[SOLVED] Fast login via ssh / Slow login via login manager with machine in AD-domain c01d Linux - Server 2 03-01-2016 01:52 AM
All users locked out of ssh jbb0906 Linux - Server 3 01-28-2016 05:07 AM
Help me - I am locked out of SSH because of DenyHosts FireRaven Linux - Security 6 10-29-2009 10:49 PM
locked self out of login JsCAMRY Red Hat 4 08-06-2004 06:55 PM
ssh locked out stikboy Linux - General 5 03-17-2003 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:10 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