Control Web Panel

WebPanel => Installation => Topic started by: amburmj on October 06, 2014, 01:35:45 AM

Title: Installing on Amazon AWS Instance
Post by: amburmj on October 06, 2014, 01:35:45 AM
I've installed the CentOS Web Panel on an Amazon AWS CentOS EC2 server. That being said, the standard user is "root" and it utilizes a private key pair, not a password for "root".

How can I set a password for root, exclusively for CentOS Web Panel, and/or setup with it's own administrative username and password?
Title: Re: Installing on Amazon AWS Instance
Post by: Administrator on October 06, 2014, 02:05:39 AM
check this info
http://forum.centos-webpanel.com/how-to/how-to-enable-root-access-on-microsoft-azure-cloud/

if that will not work then contact support so we can check that for you
http://centos-webpanel.com/contact
Title: Re: Installing on Amazon AWS Instance
Post by: erm3nda on October 06, 2014, 06:01:20 AM
You are talking about login on SSH. By default, Amazon AMI do not allow root to being logued, also force you to use key pairs. This a HOT question for all AMI users and the first think i modify when test long time ago.

Remove old ec2-user keys:
`rm /home/ec2-user/.ssh/authorized_keys`

Now allow root login and login by password by editing file: /etc/ssh/sshd_config.

You have to search for that and set yes to both:

Do not forget to:
`/etc/init.d/sshd restart` or `service sshd restart`

Also, set a default password for root using command: 'sudo passwd root`
Title: Re: Installing on Amazon AWS Instance
Post by: gbemle on October 06, 2021, 06:44:39 PM
Saw this post while searching for same problem, Thought I should share my solution

http://forum.centos-webpanel.com/index.php?topic=3114.0