Tutorials for AWS Beginners how to connect two EC2 instances without keypair using SSH

Опубликовано: 28 Февраль 2025
на канале: TutorialsFor
1,922
18

#tutorialsforawsbeginners #aws #tutorialsfor
Tutorials for AWS Beginners how to connect two EC2 instances without keypair using SSH - Basic AWS Tutorials

In this video you will see how to connect two AWS Rhel EC2 instances without Keypair using ssh

Here's what I did on a AWS RHEL 8 EC2 Instances:

A) Login as root using the keypairs

B) Setup the necessary users and their passwords (Both ec2 servers) with
sudo adduser awsadmin
sudo passwd awsadmin

C) Edit /etc/ssh/sshd_config setting (Both ec2 servers)
For a valid user to login with no key
PasswordAuthentication yes

D) Restart the ssh daemon (Both ec2 servers) with
service ssh restart

E) Create SSH ID in one of the AWS EC2 instnce
#ssh-keygen

F) Copy the ssh id to another server
#ssh-copy-id ip.address.of.target.server

After this one can connect from one ec2 to another ec2 using ssh commands without keypair

#ec2 #keypair #sshd #sshd_config #visudo #rootuser #createuser #awstutorials #rhel #linux