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.

ความคิดเห็น • 20

  • @bismadar6332
    @bismadar6332 2 ปีที่แล้ว +3

    woww.. i must say so clean and clear explanation without wasting any time..i appreciate it.

  • @misterdeen
    @misterdeen ปีที่แล้ว +1

    Easy and clear info. thanks and appreciate it

  • @zaheerbeg4810
    @zaheerbeg4810 ปีที่แล้ว +1

    Thanks Sir, highly appreciated your time and work

    • @DevOpsCoach
      @DevOpsCoach  ปีที่แล้ว

      It's my pleasure, thank you Zaheer!

  • @nicetomeetugaming7024
    @nicetomeetugaming7024 2 ปีที่แล้ว

    Thanks for this amazing video sir!

  • @tejasraikar6215
    @tejasraikar6215 2 ปีที่แล้ว +1

    Thanks sir

  • @anthonypoleski1220
    @anthonypoleski1220 2 ปีที่แล้ว

    Ur great 🙌

  • @sateeshkarri8178
    @sateeshkarri8178 2 ปีที่แล้ว +1

    Good vedio

  • @khanyasser
    @khanyasser 2 ปีที่แล้ว

    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

  • @charankumar3994
    @charankumar3994 3 ปีที่แล้ว

    I am getting connection time out error, what could be the issue

    • @DevOpsCoach
      @DevOpsCoach  3 ปีที่แล้ว

      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.

    • @charankumar3994
      @charankumar3994 3 ปีที่แล้ว

      @@DevOpsCoach through my personal laptop, but anti virus is installed. is there any way to solve the issue

  • @bhavanivani448
    @bhavanivani448 2 ปีที่แล้ว

    Hi sir,i need small help required from you AWS installation in my machine

    • @DevOpsCoach
      @DevOpsCoach  2 ปีที่แล้ว

      How can I help you? what are you trying to do on your machine? what is the operating system of your laptop?