I have created a new VestaCP user beside admin to Host all my websites under the new user account. The new user works fine, I can access the website, I can log in vestaCP with the new user account, use FTP, add a new website, but what I cannot do is ssh to the new user. when trying to login via SSH or trying to “su” to new VestaCP user I always get this error “This account is currently not available”.
“This account is currently not available” error means what it says. The account you are trying to “su” to or trying to login with is currently not available because there is no valid shell set for this user.
You can check this by looking into /etc/passwd (use root account) file and see the shell which is set for the desired user.
[email protected]:~# nano ~/etc/passwd
If the shell is set to “/bin/false” or “/sbin/nologin” you have confirmed the problem.
Here is an example of users admin and tawfiq
How to fix “This account is currently not available” error?
- Login to VestaCP admin panel with admin account.
- Goto User
- Edit Specific user
- Change SSH Access from “nologin” to “bash”
It fix my ssh login issue for new vestaCP user. I hope it works for you also. Thanks for reading.