When you try to do an SSH on a particular Linux or Unix-Like Server and you get an error "This account is currently not available" that's because the user has been disabled.
$ ssh -p 22 dev@192.168.10.112
dev@192.168.10.112 password:
Last login: Wed Aug 2 11:23:51 2023 from dev@192.168.10.112
This account is currently not available.
Connection to dev closed.
Reason for the Error:
The message indicates that the user is locked. If you are the root user, you can check it using the command,
$ passwd -S dev
dev L 08/04/2023 0 99999 7 -1
As you can see the L next to dev user indicates that the user is locked.
How to fix it:
As a root user run the below command to enable the user again,
$ sudo passwd -u dev
passwd: password expiry information changed.

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!