Page 1 of 1

Why am i getting locked out of Vestacp after disabling root SSH access?

Posted: Thu Feb 18, 2016 4:54 pm
by conneXions
Hello all,

After noticing intrusion attempts via SSH at my newly setup centOS 6 server with vestacp,
I decided to 'harden up' my server.

I have just done only the basics -
1) changing initial root password
2) create a newuser + set newuser password
3) give newuser ALL privileges
4) disable root SSH access

Everything seemed to be working fine after that.
I can SSH login (using Putty) into my server using newuser credentials and do the sudo thingy.

But when I tried to web login into vestacp I got a 'Invalid username or password' message.
I tried to reset password but that didn't work.
I tried using new root password but didn't work either.
I also tried newuser credentials but no joy there.

Any suggestion?

Thanks in advance!

Re: Why am i getting locked out of Vestacp after disabling root SSH access?

Posted: Thu Feb 18, 2016 6:25 pm
by tjebbeke
when you execute v-list-users the new created user is listed there?

Re: Why am i getting locked out of Vestacp after disabling root SSH access?

Posted: Sat Feb 20, 2016 2:18 am
by conneXions
tjebbeke wrote:when you execute v-list-users the new created user is listed there?
nope. only 'admin'
USER PACKAGE U_DISK U_BANDWIDTH SUSPENDED DATE
--------- --------- --------- --------- --------- ---------
admin default 18 2 no 2016-02-09


I've tried re-enabling root SSH access but that didn't work either.
I mean I can have root SSH access again but still cannot login into Vestacp.

any other suggestions?

Re: Why am i getting locked out of Vestacp after disabling root SSH access?

Posted: Sat Feb 20, 2016 4:26 pm
by mike08
Well, I just disabled ssh on my server and that didn't brake anything. Try

Code: Select all

v-change-user-password admin new_password
And then login again to see if it works.
Regards,

Re: Why am i getting locked out of Vestacp after disabling root SSH access?

Posted: Sun Feb 21, 2016 9:17 am
by tjebbeke
Use v-add-user to add the user in vesta or login as admin.