Akash-Softw / My-Study-and-Research

0 stars 0 forks source link

ssh connection between two EC2 Instance #5

Open Akash-Softw opened 1 year ago

Akash-Softw commented 1 year ago

First Step:

Create 2 EC2 instance

2nd Step:

generate ssh for both

3rd step:

paste public key into authorizesd file for both.

4th Step:

into ssh folder run the following command:

ssh -i' ~/.ssh/id_rsa.pub' username@privateIPaddressofInstance