How to connect to AWS EC2 instance from local machine | Connect to EC2 instance from local machine
ฝัง
- เผยแพร่เมื่อ 25 ส.ค. 2024
- www.cidevops.c...
Pre-requisites:
1. Keys(for e.g., yourkey.pem) already downloaded in your local machine, preferably in Downloads folder.
2. EC2 is up and running
3. For windows laptop, you need to install Git by downloading from this URL - git-scm.com/do.... For Apple laptop you need to download iTerm from here.
Mac Laptop instructions
Open iTerm window, type the below command to go to downloads directory.
cd downloads
For few Mac laptops, it may add .txt in the end of pem file. in that case you need to remove .txt in the end
pwd
and then execute below commands to make sure you are not making keys publicly viewable.
chmod 400 *.pem
Paste the url from example highlighted above in step # 4.
ssh -i "mykey.pem" ubuntu@dns_name.compute.amazonaws.com
type yes when it is asking to connect.
woww.. i must say so clean and clear explanation without wasting any time..i appreciate it.
Thank you so much!
Easy and clear info. thanks and appreciate it
Glad it was helpful!
Thanks Sir, highly appreciated your time and work
It's my pleasure, thank you Zaheer!
Thanks for this amazing video sir!
My pleasure!
Thanks sir
So nice of you
Ur great 🙌
Thank you so much!
Good vedio
Thanks
hello sir, how do I run a python script in SSH. Do I have to upload my python file using file zilla or there is another way
I am getting connection time out error, what could be the issue
Charan, how are you connecting? are you in your company network? if so, some companies can block you to access public cloud from your machine.
@@DevOpsCoach through my personal laptop, but anti virus is installed. is there any way to solve the issue
Hi sir,i need small help required from you AWS installation in my machine
How can I help you? what are you trying to do on your machine? what is the operating system of your laptop?