LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Ssh login locked (https://www.linuxquestions.org/questions/linux-server-73/ssh-login-locked-4175604513/)

bobbyjoehall 04-24-2017 10:48 AM

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

MadeInGermany 04-24-2017 12:08 PM

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


bobbyjoehall 04-24-2017 04:11 PM

Still don't work
 
I still can't get it to work no pam tally or chage

ondoho 04-25-2017 12:44 AM

Quote:

Originally Posted by bobbyjoehall (Post 5701695)
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.

bobbyjoehall 04-25-2017 04:26 AM

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

Turbocapitalist 04-25-2017 04:33 AM

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.

bobbyjoehall 04-25-2017 08:33 PM

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

bobbyjoehall 04-25-2017 08:35 PM

What's do u mean console access? Terminal emulater?

Turbocapitalist 04-25-2017 08:38 PM

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.

ondoho 04-26-2017 12:10 AM

Quote:

Originally Posted by bobbyjoehall (Post 5701829)
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

624867243@qq.com 04-26-2017 04:33 AM

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.


All times are GMT -5. The time now is 01:36 AM.