You are not logged in.

#1 2017-08-03 10:08:12

mouseman
Member
From: Outta nowhere
Registered: 2014-04-04
Posts: 298

[Solved] remotebox/vboxwebsrv login denied

Edit: Got a reply on Remotebox - learned something new today smile. Logins were denied due to too many login failures. pam_tally --user vbox --reset resolved the issue. Why these logins were denied but the 'su - vbox' weren't, I don't know yet.
------------------------------------------------

I am using remotebox to manage a headless virtualbox server. After setup a month or so ago, everything worked fine, but yesterday I suddenly started getting login denied.

I open an SSH tunnel to my server (I get the same behavior when on the same subnet and using the servers' IP address and no ssh tunnel):
$ ssh -N -L 127.0.0.1:18083:10.26.13.10:18083 user@hostname

In remotebox, I fill in:
http://127.0.0.1:18083
username: vbox
password: password

With Journalctl I see the following messages:

Aug 03 07:57:49 hostname vboxwebsrv[2369]: pam_tally(login:auth): user vbox (1001) tally 33, deny 3
Aug 03 07:58:40 hostname vboxwebsrv[2369]: pam_tally(login:auth): user vbox (1001) tally 34, deny 3
Aug 03 07:59:22 hostname vboxwebsrv[2369]: pam_tally(login:auth): user vbox (1001) tally 35, deny 3
Aug 03 07:59:55 hostname vboxwebsrv[2369]: pam_tally(login:auth): user vbox (1001) tally 36, deny 3

I've reset the password as root.

When I login to the server with ssh as my user, and use 'su - vbox', I can type in the password and it logs in just fine:

Aug 03 11:52:32 hostname su[21516]: (to vbox) myuser on pts/1
Aug 03 11:52:32 hostname su[21516]: pam_unix(su-l:session): session opened for user vbox by myuser(uid=1000)

Yesterday, or the day before I've been making changes to pam.d/passwd and pam.d/sshd. I've made the following changes to passwd.

I commented out this line:

password        required        pam_unix.so sha512 shadow nullok

and added these:

password required pam_cracklib.so retry=2 minlen=10 difok=6 dcredit=-1 ucredit=-1 ocredit=-1 lcredit=-1
password required pam_unix.so use_authtok sha512 shadow

In sshd (which I don't believe matters, but for completeness sake), I changed it to reflect the following to force 2FA for remote sessions:

#%PAM-1.0
#auth     required  pam_securetty.so     #disable remote root
auth      required  pam_google_authenticator.so
#auth      include   system-remote-login
account   include   system-remote-login
password  include   system-remote-login
session   include   system-remote-login

I have reverted the /etc/pam.d/passwd changes, reset the password for vbox once more. I have rebooted the server, but for some reason, I keep getting login denied using remotebox.

I wanted to test whether remotebox passes an invalid password. Even though I've reset the password to the same one as before (I keep them in a password DB) and verified it to be correct, remotebox might do something weird. I tried 'tcpdump -i -vvv port 18083' on the server, but since the tunnel dumps it straight to the local IP, I don't think the traffic is even passing through the network stack and tcpdump doesn't catch a single packet.

I'm at a loss. I've posted on the remotebox forum too but not getting any replies.

Maybe someone here has a bright idea what I can try?

Thanks in advance!

Last edited by mouseman (2017-08-03 11:07:33)

Offline

Board footer

Powered by FluxBB