Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion Debian/Ubuntu
  • Search

Change root sql password & disable root ssh

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
Macha
Posts: 1
Joined: Wed Aug 05, 2015 10:39 am

Change root sql password & disable root ssh
  • Quote

Post by Macha » Wed Aug 05, 2015 11:56 am

Hello

How to change password

It's possible to disable root login ?

My CFG :

Code: Select all

Port XXX
Protocol 2
PermitRootLogin no

UseDNS no
UsePAM yes

AllowUsers ???
What user i need autorise for VestCP ? (AllowUsers )
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Change root sql password & disable root ssh
  • Quote

Post by skurudo » Fri Aug 07, 2015 8:35 pm

Macha wrote:How to change password
For root password is simple command - passwd
or from admin -> sudo passwd

For mysql root:

Code: Select all

mysqladmin -u USER -p password NEWPASSWORD 
and you need change password here -> /usr/local/vesta/conf/mysql.conf
Macha wrote:It's possible to disable root login ?
Macha wrote:My CFG :

Code: Select all

Port XXX
Protocol 2
PermitRootLogin no

UseDNS no
UsePAM yes

AllowUsers ???
What user i need autorise for VestCP ? (AllowUsers )
In etc/ssh/sshd_config change this line:

Code: Select all

#PermitRootLogin yes
Edit to this:

Code: Select all

PermitRootLogin no
And then /etc/init.d/sshd restart

PS: In section AllowUsers you can add admin.
Top

Felix
Posts: 134
Joined: Tue Aug 04, 2015 7:15 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Change root sql password & disable root ssh
  • Quote

Post by Felix » Sat Aug 08, 2015 7:08 am

I would suggest to completely disable password authentication logins and rely only to key authentication. For key authentication take a look here and to disable password login look here.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Debian/Ubuntu”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password