How To Avoid SSH with default ec2-user | FedRAMP | How to create a custom user in AWS EC2

  Рет қаралды 98

CloudTech AWS & Azure & GCP for Everyone 🤝

CloudTech AWS & Azure & GCP for Everyone 🤝

Күн бұрын

How To Avoid SSH with default ec2-user | Prevent FedRAMP | How to create a custom user in AWS EC2 #fedramp #user #sshorts
How to delete a user from the AWS Linux ec2 instance
userdel -r cloudtech
How to List Users from the AWS Linux ec2 instance
getent passwd
---------------------------------------------------------------------------------------------
AWS CLI create ec2 instance | How to create an ec2 instance in AWS using CLI ⏩ • AWS CLI create ec2 ins...
How to Connect AWS EC2 by AWS Session Manager ⏩ • How to Connect AWS EC2...
Create an EC2 Instance with EC2 User Data Script ⏩ • Create an EC2 Instance...
Amazon Route 53 ⏩ • How to Connect Godaddy...
How To Create an AWS Windows Server EC2 Instance ⏩ • How To Create an AWS W...
AWS Tutorial For Beginning ⏩ • AWS Tutorial For Begin...
CloudFront Distribution ⏩ • AWS CloudFront | Cloud...
AWS Jump Box/Bastion Hosts ⏩ • AWS Bastion Host | AWS...
AWS Toolkit for JetBrains/PyCharm ⏩ • Run Locally & Deploy a...
AWS SAM CLI Setup Guide ⏩ • AWS SAM CLI Setup Guid...
Steps to Create Serverless Application Run locally and deploy In AWS ⏩ • Steps to Create Server...
AWS CodeCommit | Git with IAM Role on EC2 Instances ⏩ • AWS CodeCommit | Git w...
How to Connect AWS EC2 by AWS Session Manager ⏩ • How to Connect AWS EC2...
How to Create AWS RDS database ⏩ • How to Create PostgreS...
How to create MySQL Server on AWS EC2 Instance ⏩ • How to create MySQL Se...
-----------------------------------------------------------------------------------------
How to schedule EC2 Start/Stop based on Tag using AWS Lambda ⏩ • How to schedule EC2 St...
AWS DynamoDB ⏩ • AWS DynamoDB | DynamoD...
AWS IAM Role ⏩ • Create an AWS IAM Role...
AWS Lambda function ⏩ • AWS Lambda function | ...
===========================================================
AWS lambda layers Step by Step Guide ⏩ • AWS lambda layers Step...
============================================================
Diffrent use case of AWS Lambda 👇
1✅ API Gateway to REST endpoint⏩ • How to trigger AWS lam...
2✅ Event processing Lambda with SNS ⏩ • Trigger Lambda from SN...
3✅ File upload processing AWS Lambda with s3 ⏩ • AWS S3 File Upload + L...
4✅ Step function ⏩ • AWS Step Functions wit...
5✅ Serverless Cron Job scheduling ⏩ • How to schedule EC2 St...
6✅How to read a file from S3 with the Python SDK ⏩ • How to read a file fro...
7✅Trigger Lambda from SNS ⏩ • Trigger Lambda from SN...
============ My other courses are available here ========= 👇
AWS Tutorial For Beginners ⏩ • AWS Tutorial For Begin...
Azure Training Videos ⏩ • Azure Tutorial For Beg...
AWS Free Tier ⏩ • AWS Free Tier 2023 | T...
How to Create AWS Account Free in 10 Minutes ⏩ • How to Create AWS Acco...
✅Don't forget to Subscribe to our Channel to learn more about cloud Technologies, Thank you: / @cloudaws
---------------------------
SSH into your EC2 instance using the default ec2-user
sudo adduser cloudtech
sudo usermod -aG wheel cloudtech
sudo su - cloudtech
mkdir .ssh
chmod 700 .ssh
touch .ssh/authorized_keys
chmod 600 .ssh/authorized_keys
vi .ssh/authorized_keys
Paste the public key into this file, save it, and exit the text editor.
--------------------------------------------------------------
sudo adduser cloudtech
echo "cloudtech:password" | chpasswd
sudo usermod -aG wheel cloudtech
sudo mkdir /home/cloudtech/.ssh
sudo chmod 700 /home/cloudtech/.ssh
sudo cp /home/ec2-user/.ssh/authorized_keys /home/cloudtech/.ssh/
sudo chown -R cloudtech:cloudtech /home/cloudtech/.ssh
sudo chmod 600 /home/cloudtech/.ssh/authorized_keys
-------------------------------------------------------------------------------------------
#aws #devops #devopsroles #cloudaws #awsdevops #awseni #awscertified
#awsdatabasemigrationservice #dms #on-prem #On-premises #datasync
#Boto3Course #certification #awscertifications #codecommunity #codecommit #migration #migrating #sourcecode #management #code #deploy #cli #awscli #termination #accidental #protect #protection #enable #devops #certification #cloudpractitioner
#cloudcomputing #tutorial #awsdemo #awsdevops Projecc #aws #PythonBoto3 #iam #security #awstoolkit #toolkit #pycharm #intelij #sam #sereverlessapplication #vpc #jumpbox #bastions #goodbye
#snapshot #amazonmachineimage #AMI #iam #accesskey #rotation #roadmap #awsroadmap #beginners

Пікірлер: 2
@sadhanroy882
@sadhanroy882 7 ай бұрын
Nicely explained the process. Thank you sir
@CloudAWS
@CloudAWS 7 ай бұрын
Thanks
AWS AMIs sharing across regions and different accounts | AWS AMIs sharing
4:17
CloudTech AWS & Azure & GCP for Everyone 🤝
Рет қаралды 92
Steps to Create Serverless Application Run locally & Deploy In AWS | AWS Serverless Application
20:12
CloudTech AWS & Azure & GCP for Everyone 🤝
Рет қаралды 304
Люблю детей 💕💕💕🥰 #aminkavitaminka #aminokka #miminka #дети
00:24
Аминка Витаминка
Рет қаралды 1,4 МЛН
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 98 МЛН
王子原来是假正经#艾莎
00:39
在逃的公主
Рет қаралды 27 МЛН
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 121 МЛН
Without stopping the EC2 Instance How to Replace EC2 Root Volume
13:41
CloudTech AWS & Azure & GCP for Everyone 🤝
Рет қаралды 294
AWS RoadMap 2024 | Amazon web service for beginners 2024
15:48
CloudTech AWS & Azure & GCP for Everyone 🤝
Рет қаралды 98
Creating an AWS Network Diagram with Palo Alto VM in Visio
11:23
Network Your Future
Рет қаралды 571
Create RPM package in Linux | Create a RPM on AWS EC2 Instance
11:21
CloudTech AWS & Azure & GCP for Everyone 🤝
Рет қаралды 91
AWS SQS | Step-by-Step Guide to Setup Amazon Simple Queue Service | AWS SQS Overview
10:28
CloudTech AWS & Azure & GCP for Everyone 🤝
Рет қаралды 115
AWS MFA setup using Google Authenticator |  Secure your AWS Account by Two Factor Authentication
9:03
CloudTech AWS & Azure & GCP for Everyone 🤝
Рет қаралды 239
Develop Lambdas Locally in VS Code Using AWS SAM | AWS Lambda Tutorial
15:50
AWS SQS with Lambda Trigger Step by Step Tutorial | Trigger Lambda when message in AWS SQS
14:03
CloudTech AWS & Azure & GCP for Everyone 🤝
Рет қаралды 65
Люблю детей 💕💕💕🥰 #aminkavitaminka #aminokka #miminka #дети
00:24
Аминка Витаминка
Рет қаралды 1,4 МЛН