Account Is Currently Not Available (Putty)
I am able to reach my server via SSH but the connection closes as soon as I put the password in.
This only happens when I log in with one of two users on the server and I can connect fine when using the other.
Putty log says:
" Using username "XXXXXXX" Keyboard-interactive authentication prompts from server: | Password: XXXXXXXX End of keyboard-interactive prompts from server Last login: Wed Apr 15 11:23:08 2020 This account is currently not available.
I did some quick researching on
This account is currently not available. in relationship to SSH log-ins it looks like your problem may be a result of not having a valid shell program assigned to communicate with Linux.
This article from scottlinux.com goes into step by step detail for setting a shell for the user in question and could be a great starting point.
Editing adduser.conf(5) and changing DSHELL to some value will make that value the default shell for every user that's created with adduser(8)…unless overridden with options. Here's a snippet of my adduser.conf(5) file:
# /etc/adduser.conf: `adduser' configuration. # See adduser(8) and adduser.conf(5) for full documentation. # The DSHELL variable specifies the default login shell on your # system. DSHELL=/bin/bash ...