Author Topic: Installing on Amazon AWS Instance  (Read 9516 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Installing on Amazon AWS Instance
« 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?

Offline
*
Re: Installing on Amazon AWS Instance
« Reply #1 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
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
***
Re: Installing on Amazon AWS Instance
« Reply #2 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:
  • 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.