EC2 allowing users to sftp - amazon-ec2

I have migrated to Amazon EC2. Installed a LAMP and created 2 users for 2 different domain. I have deployed a centos 7 ami.
The problem is i can only login as centos user usig FileZilla. I have created user a and user b also. Isn't it possible to provide them password or create key for them? They can not edit their files.

Related

Command Line to retreive CyberPanel/Snappymail admin dashboard password on Ubuntu Virtual Machine

I recently purchased a VPS with amazon lightsail and I installed cyberpanel. As I am setting up my websites and email server I realized that I was not able to send out emails but can receive them just fine. I later found out that amazon blocks the ports on EC2 instances. So in order to use a work around I have to attach my SMTP server from AWS SES into the SMTP settings in the admin dashboard of the SnappyMail webmail dashboard. But In order to log in as admin to access it I need a password that I dont have. Since I installed cyberpanel on this Ubuntu 20.04 instance I was hoping that it would be a command line that I can type in to see what the current password is or maybe even reset or change it. Please help me
I tried to look it up on youtube but I kept getting videos that referred to rainloop. And all though it looks the same they are different softwares and I cant access it the way that I was shown in the 2 videos that I found
Run nano /usr/local/lscp/cyberpanel/rainloop/data/_data_/_default_/admin_password.txt
you will find the Password of snappymail
then (Ctrl+X) to exit NANO edit

Admin Credentials for EC2 Instance Don't Work After Joining Windows Active Directory Domain

The Problem:
I'm unable to connect to my Windows EC2 instance using the admin credentials set at launch after manually joining it to my Windows active directory domain.
The Error:
What I've tried:
I've tried researching the issue but the only solutions I see are for EC2 instances that are exposed to the internet. We do not want to expose our EC2 instances to the internet.
I've tried using the Windows password associated with the EC2 instance but it's the same as the admin credentials set at default and I get the same error.
Any help on how to resolve this would be greatly appreciated, thanks!

Connect a database of amazon ec2 instance with another ec2 instance

I have two ec2 instances running laravel projects using ubuntu 20.04 on both instances. Both instances are running fine.
One instance contains a database which is also working with one project but I want the same database to connect with the other laravel project while sitting in other EC2 instance. So here is what I means.
2 EC2 instances (Ubuntu 20.04). Let's call them (Instance A & Instance B)
Instance A has mysql database up and running and connected to the laravel project
Instance B also required to use database of Instance A. I did it on digitalocean but I am not finding any solution on internet.
Any help would be really appreciated
Thank You
The problem wasn't with instances security groups.
All I had to do was to allow MySQL to listen to connections from remote IP addresses, and for that, I created a new user in MySQL that listens to the connection from the second ip address.
CREATE USER 'new_remote_user'#'ip-address-of-your-instance' IDENTIFIED BY 'pass-of-new-instance';
grant all privileges on *.* to 'new_remote_user'#'ip-address-of-your-instance';

File permission in Linux, Allowing user upload in Amazon ec2

I am making a web app that is hosted on amazon ec2. One of the page allows user to upload photo to the site.
MY script works on ordinary site, but not with ec2, so I suspect the problem is about connection or authorization.
Maybe ordinary web user do not have authorization to upload to the var/www/html/ directory? But how to enable them?
(specifically I think the following line is not working
move_uploaded_file)
I am using AMazon ec2 micro instance Linux AMI server. I am uploading via a form in a php file.

Permission denied issues with Amazon EC2 and S3 hosting

I hired a freelancer to develop a PHP CI application hosted on Amazon EC2, and the app doesn't work. I am using Wowza with EC2 and S3. I have been seeing permission denied problems. I have Ubuntu and I'm trying to install a LAMP server and run public DNS on the instance. I have set up SSH as well.
I found the elastic IP of the instance we are running and used GoDaddy domain manager. I thought that simply pointing the domain to the instance would work. Do I have to change the nameservers on GoDaddy's side as well? Where would I find the right ones?
I have very little server-side understanding. I'm sure the solution is just a simple change, something like one line of code, a different user name or a different ID number. What do I need to do?
you should point your domain to your elastic ip of your EC2 instance. This should be done from where you host your DNS server. If you don't have one, you can change the settings inside the godaddy account to point to your DNS service.

Resources