Installing on Amazon AWS Instance

Started by amburmj, October 06, 2014, 01:35:45 AM

Previous topic - Next topic

amburmj

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?

Administrator


erm3nda

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:

  • PasswordAuthentication yes
  • PermitRootLogin yes

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`
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.

gbemle

Saw this post while searching for same problem, Thought I should share my solution

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