Cannot login to SSH via default admin user (SOLVED)

geek0000

Verified User
Joined
Aug 26, 2020
Messages
13
I am trying to login the server via the default admin user. I don't have any other users in the system.

SSH Logs say it accepted authentication, but putty closes immediately

Bash:
Feb  1 11:51:54 svr1 sshd[3348040]: Accepted password for admin from 41.251.73.253 port 49022 ssh2
Feb  1 11:51:54 svr1 systemd[3348051]: pam_unix(systemd-user:session): session opened for user admin by (uid=0)
Feb  1 11:51:54 svr1 sshd[3348040]: pam_unix(sshd:session): session opened for user admin by (uid=0)
Feb  1 11:51:55 svr1 sshd[3348040]: pam_unix(sshd:session): session closed for user admin
Feb  1 11:51:55 svr1 systemd[3348052]: pam_unix(systemd-user:session): session closed for user admin

HOWEVER. Logging in via ROOT Works. So why won't admin?
 
Solved

1) Edit /etc/passwd

2) admin user should have /bin/bash
(NOT /bin/false)
 
But only if you want admin to have ssh access. This can be controlled from the DirectAdmin interface.
 
But only if you want admin to have ssh access. This can be controlled from the DirectAdmin interface.
SSH was already enabled for this user. Yet it was not working till I manually edited the file
 
Back
Top