How to remotely SSH (connect) Visual Studio Code to AWS EC2

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 มิ.ย. 2023
  • Most of the code development by data engineers, data scientist and machine learning engineers are done in the cloud and we know that text editors such as VIM and NANO are not easy to use for code development in the cloud. Therefore, in this video I show you how you can remotely connect your visual studio code from your local computer (machine) to your cloud instance (AWS EC2) using SSH.
    *Books I recommend*
    1. Grit: The Power of Passion and Perseverance amzn.to/3EZKSgb
    2. Think and Grow Rich!: The Original Version, Restored and Revised: amzn.to/3Q2K68s
    3. The Book on Rental Property Investing: How to Create Wealth With Intelligent Buy and Hold Real Estate Investing: amzn.to/3LLpXRy
    4. How to Invest in Real Estate: The Ultimate Beginner's Guide to Getting Started: amzn.to/48RbuOb
    5. Introducing Python: Modern Computing in Simple Packages amzn.to/3Q4driR
    6. Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter 3rd Edition: amzn.to/3rGF73G
    Below is the link to my PostgreSQL Playlist • Tutorial 1 - What is D...
    Please don’t forget to like, share, comment and subscribe to our channel for more videos.
    DISCLAIMER: This video and description has affiliate links. This means when you buy through one of these links, we will receive a small commission and this is at no cost to you. This will help support us to continue making awesome and valuable contents for you.
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @Programmer22-pv4xs
    @Programmer22-pv4xs 7 วันที่ผ่านมา

    After 7 hours trying to connect my instance, you really help me!

    • @tuplespectra
      @tuplespectra  8 ชั่วโมงที่ผ่านมา

      Glad it helped.

  • @jalisarenee55
    @jalisarenee55 3 หลายเดือนก่อน +1

    I'm on my data engineering journey and I was always confused learning EC2. You have the best tutorial for this and I'm excited to watch more of your videos! Thank you!

    • @tuplespectra
      @tuplespectra  3 หลายเดือนก่อน

      Glad it was helpful! Thanks for your comment.

  • @BI-Rahul
    @BI-Rahul ปีที่แล้ว +3

    Wow, this video was incredibly helpful! I've been struggling to connect Visual Studio Code to my AWS EC2 instance, and your step-by-step tutorial made it so clear and easy to follow. The way you explained each concept and demonstrated the process was fantastic.
    I appreciate how you took the time to cover all the necessary configurations and troubleshooting tips. Your instructions were concise and precise, making it a breeze for me to set up the remote SSH connection.
    Thank you for sharing your expertise in such a concise and beginner-friendly manner. I'll definitely be subscribing to your channel for more insightful content like this. Keep up the excellent work!

    • @tuplespectra
      @tuplespectra  11 หลายเดือนก่อน

      I'm glad you find it valuable. Thanks for those kind words. Stay tuned for more awesome videos.😄

  • @gyungyoonpark
    @gyungyoonpark 5 หลายเดือนก่อน

    this video is so clear and one of the best tutorial I've seen on youtube. thank you so much

    • @tuplespectra
      @tuplespectra  4 หลายเดือนก่อน

      Glad it was helpful! Thanks for the comment. It means a lot to me.

  • @josephattabenninjr7317
    @josephattabenninjr7317 9 หลายเดือนก่อน +1

    God bless you my brother. Great content, and i love how you patiently took your time to explain every concept.

    • @tuplespectra
      @tuplespectra  9 หลายเดือนก่อน +1

      Thank you so much. I'm glad you found it valuable.

  • @alronharry5977
    @alronharry5977 5 หลายเดือนก่อน +1

    Bro, I am so grateful for how you clearly explained this. This video has helped me sooo much in my internship!! THANK YOUU SO MUCH GOD BLESS YOU

    • @tuplespectra
      @tuplespectra  5 หลายเดือนก่อน

      You're so welcome! Amen! I'm glad it was helpful.

  • @ndthdproduction2900
    @ndthdproduction2900 5 หลายเดือนก่อน

    Helpful video bro. Keep up the good work!

  • @jhofreojeda6615
    @jhofreojeda6615 4 หลายเดือนก่อน

    Excellent tip!!
    I am starting out in the world of MLOPs and this tip will be very useful to me.
    thank you.

    • @tuplespectra
      @tuplespectra  4 หลายเดือนก่อน

      Glad it was helpful! Thanks for your comment.

  • @saifshaikh3191
    @saifshaikh3191 6 หลายเดือนก่อน +1

    Thanks man, this really solved my problem which I was facing as someone who just started. Thanks again

    • @tuplespectra
      @tuplespectra  6 หลายเดือนก่อน +1

      Glad it helped! Thanks for your comment.

  • @yusufuthman8571
    @yusufuthman8571 7 หลายเดือนก่อน

    This video came in handy and it is my exact use case.
    Thank you.

    • @tuplespectra
      @tuplespectra  7 หลายเดือนก่อน

      I'm glad you found it helpful.

  • @RKeduis
    @RKeduis 4 หลายเดือนก่อน +1

    Thank You! Very helpful tutorial.

    • @tuplespectra
      @tuplespectra  4 หลายเดือนก่อน

      Glad it was helpful!

  • @JayRavalani
    @JayRavalani 4 หลายเดือนก่อน

    Amazing Video. Came here in between the WeatherAPI Project and damn. Superb content!

    • @tuplespectra
      @tuplespectra  4 หลายเดือนก่อน

      Thanks so much. I'm glad you loved it.

  • @gerry_blandu
    @gerry_blandu 9 หลายเดือนก่อน

    This is magnificent Sir, many thanks for this!

    • @tuplespectra
      @tuplespectra  9 หลายเดือนก่อน

      Glad you enjoyed it! Thanks!

  • @seth_king_codes
    @seth_king_codes 10 หลายเดือนก่อน

    great video, was able to get evyerhting working as you mentioned, thank you sir! keep them coming

    • @tuplespectra
      @tuplespectra  10 หลายเดือนก่อน

      Thank you! I'm glad you got them working.

  • @geraldmiezan5114
    @geraldmiezan5114 8 หลายเดือนก่อน +1

    Thank you for this excellent explanation

    • @tuplespectra
      @tuplespectra  8 หลายเดือนก่อน

      You are welcome! I'm glad it was helpful.

  • @jasong1713
    @jasong1713 5 หลายเดือนก่อน

    so well made, thank you sir!

    • @tuplespectra
      @tuplespectra  5 หลายเดือนก่อน

      Glad you liked it!

  • @JoysonFernandes-kd1zx
    @JoysonFernandes-kd1zx 20 วันที่ผ่านมา +1

    You are superb brother..

    • @tuplespectra
      @tuplespectra  15 วันที่ผ่านมา

      Thank you so much 😀

  • @zihenglim6044
    @zihenglim6044 4 หลายเดือนก่อน +1

    Bro this video is very helpful for me, your video is very detailed, thank you very much for your video.❤❤

    • @tuplespectra
      @tuplespectra  4 หลายเดือนก่อน

      Glad it helped

  • @user-fe3fp4kz2i
    @user-fe3fp4kz2i 5 หลายเดือนก่อน

    wow .. that was unexpected .. you explain very well i love it !

    • @tuplespectra
      @tuplespectra  4 หลายเดือนก่อน

      Glad you liked it!

  • @songterence4186
    @songterence4186 9 หลายเดือนก่อน

    What a great explanation. thank you so much

    • @tuplespectra
      @tuplespectra  9 หลายเดือนก่อน

      Thank you so much.

  • @greenpill810
    @greenpill810 2 หลายเดือนก่อน

    You earned my subscription. You didn't need to ask. I reserve my comment but what you just shared most videos on you tube and even experienced DevOps videos don't explain this deep

  • @potatonumbertwo6754
    @potatonumbertwo6754 3 หลายเดือนก่อน +1

    wonderful content! Thanks!!
    for other learners: when you copy the User from ec2, it is Ubuntu. it will cause Permission denied(publickey). User should be ubuntu (all lowercase)

    • @tuplespectra
      @tuplespectra  3 หลายเดือนก่อน

      You are welcome. Thanks!

    • @anushanr1355
      @anushanr1355 2 หลายเดือนก่อน

      Thank you so much, I am practicing all along and you helped me.

  • @sojeyusuf149
    @sojeyusuf149 11 หลายเดือนก่อน

    You are doing a good job, keep it up ....

  • @DineshSharma-ec2iu
    @DineshSharma-ec2iu 5 หลายเดือนก่อน

    thanks a lot

    • @tuplespectra
      @tuplespectra  5 หลายเดือนก่อน

      You are most welcome

  • @good6894
    @good6894 11 หลายเดือนก่อน

    Thank you :)

  • @Omer698
    @Omer698 3 หลายเดือนก่อน +1

    Excellent tutorial, everything is clearly explained. I wish you'd do a python course that's specific for data engineering.

    • @tuplespectra
      @tuplespectra  3 หลายเดือนก่อน

      Thanks for your comment. Yes, I would create a python course some times later.

  • @rachmanmohammad6210
    @rachmanmohammad6210 11 หลายเดือนก่อน

    love your content

    • @tuplespectra
      @tuplespectra  11 หลายเดือนก่อน

      I'm glad you love it. Thanks.

  • @galih25
    @galih25 3 หลายเดือนก่อน

    thank you very much sir. It require one more step to remove all permission to .pem file except for the current user

  • @vikas6418
    @vikas6418 9 หลายเดือนก่อน

    Love the Content and the way you explained so smooth;y.. Can you also made video how we can connect using putty ?... Appreciated the Hard work Man...

    • @tuplespectra
      @tuplespectra  9 หลายเดือนก่อน

      Thanks so much for your comment. We will look into your request.

  • @vaibhavtyagi1588
    @vaibhavtyagi1588 3 หลายเดือนก่อน +1

    GREATTTTTTTTTTTTTTTTTTTT

    • @tuplespectra
      @tuplespectra  2 หลายเดือนก่อน

      Thanks so much.

  • @adetokunbooni6607
    @adetokunbooni6607 7 หลายเดือนก่อน

    Permission denied (publickey,gssapi-keyex,gssapi-with-mic) vscode
    What do u think may have led to this ? i have been stuck in this for over a week now. please assist

  • @user-ij4ih8qp3e
    @user-ij4ih8qp3e 4 หลายเดือนก่อน

    getting error while remotely connecting with EC2 instance using vs code as per your guideline.
    Error : Could not establish connection to "myEC2Instance" Permission denied(publickey).

  • @orobosaobude1246
    @orobosaobude1246 4 หลายเดือนก่อน

    Thank you for your detailed video. I got below error from my cmd terminal
    C:\\Users\\Owner/.ssh/config line 4: garbage at end of line; "web".
    C:\\Users\\Owner/.ssh/config: terminating, 1 bad configuration options

    • @BalwantChauhan-iz5de
      @BalwantChauhan-iz5de 3 หลายเดือนก่อน

      Please change the file to read permision of .pem that vscode can access that file to connect
      And you want to do this change in by going the directory where .pem get downloaded
      Suppose if your .pem file get downloaded in download folder and then change the file permision in download directory
      For windows icacls . / grant:r Users:R
      For mac chmod 400
      It will resolve your error

  • @Pratham-qc6ic
    @Pratham-qc6ic 10 หลายเดือนก่อน

    So while making an aws account for personal projects what type of aws account would you recommend to create? a business aws account or a personal aws account?

    • @tuplespectra
      @tuplespectra  10 หลายเดือนก่อน

      Personal aws account should be fine.

  • @user-hf3fm2ir1j
    @user-hf3fm2ir1j 9 หลายเดือนก่อน

    Can I do interactive window too?

  • @molugeetu4519
    @molugeetu4519 8 หลายเดือนก่อน +1

    I have a question.
    The IP address changed every time we stop and start the instance again, correct?
    To connect to that instance do we have to change the Hostname in the config file every time? Or is there a work around with this issue?
    P.S. : Great content nonetheless.

    • @tuplespectra
      @tuplespectra  8 หลายเดือนก่อน

      Thanks for the kind words. Per your question, yes the IP address changes every time we start and stop the instance. And yes, you will have to change the Hostname to the new IP address. However, if you want to be using same IP address each time, you will have to allocate Elastic IP address under "Network and Security and then associate it with the EC2 instance you provisioned. But you will be charged for using an elastic IP address. I don't think it is expensive though. If it is not necessary, don't use it so you don't get charged.

    • @molugeetu4519
      @molugeetu4519 8 หลายเดือนก่อน

      @@tuplespectra got it. Thanks a lot for the detailed reply.

  • @markdewberry3744
    @markdewberry3744 4 หลายเดือนก่อน

    I get an error "could not establish connection".
    Log:
    Failed to parse remote port from server output
    Exec server for ssh failed: error
    Error opening exec server for ssh: error

    • @tuplespectra
      @tuplespectra  4 หลายเดือนก่อน

      Ensure your configuration file is indented appropriately and that you have the right info there.

  • @flosrv3194
    @flosrv3194 2 หลายเดือนก่อน

    vsc doesnt connect to the ssh. It doesnt work even if i did all the steps correctly

  • @jorgesisco981
    @jorgesisco981 9 หลายเดือนก่อน

    Great video!
    But when I open a file the connection freezes and then the EC2 is not accesible anymore. I have to stop an start again.
    Is there a way to avoid that?

    • @tuplespectra
      @tuplespectra  9 หลายเดือนก่อน

      Thank you! I think that might either be a problem with your network connection or the EC2 instance.

  • @tsaminamina_eheh
    @tsaminamina_eheh 10 หลายเดือนก่อน

    Hi Mate. Just a word of advice, please blur the file names when you display your folder contents- you may expose your personal details in ways you don't want to

    • @tsaminamina_eheh
      @tsaminamina_eheh 10 หลายเดือนก่อน

      Also, thank you for making this video. Fantastic work!

  • @starlomy
    @starlomy 8 หลายเดือนก่อน

    Thank you so much for the videos, pls, I use a Macbook. I have been stuck on the 'permission denied (publickey)' with vscode. I get the connection on my Terminal but after getting the extension, editting the config file, it still gives me permission denied

    • @tuplespectra
      @tuplespectra  8 หลายเดือนก่อน

      I don't use a macbook, but I'm wondering if there is some grant permission issues with the computer user. May be you need to grant permission to the .pem file such as writing "chmod 400 pem filename". Let me know if this fixes the issue or if something else does, please comment here so others can learn. Thanks!

    • @starlomy
      @starlomy 8 หลายเดือนก่อน

      @@tuplespectra Thank you so much for the reply. It was eventually resolved this weekend. I did try the chmod 400 and I also edited my ssh_config file severally with so many videos and articles I saw online. The solution was that I did not follow lesson 101: write the syntax exactly as it is. I wrote 'ubuntu' with a capital 'U' instead of lower case. I had to restore my config file and correct it. I don't know if it's tears of joy or pity I'm crying now.
      I have hit another challenge with sending a message to slack after scheduling with airflow. I got a message of 'slack_conn_id' is missing as an argument. I'm still working on it.
      Thank you so much for all the videos

    • @tuplespectra
      @tuplespectra  8 หลายเดือนก่อน

      @@starlomy Awesome. I'm glad you were able to fix the problem. However, you got into another problem. Just know that issues as this is part of code development and this is part of what will make you a better bug resolver which is a great skill to have.

    • @starlomy
      @starlomy 7 หลายเดือนก่อน

      @@tuplespectra Boss, do you know anyone that can help prepare someone for this new AWS data engineer certification

  • @KakarotSsjg
    @KakarotSsjg 9 หลายเดือนก่อน

    I had to change the file permission using this "chmod 400 path/to/filename" command. Prior to that I was getting error it being a public key access denied.

    • @wonderswonders8772
      @wonderswonders8772 9 หลายเดือนก่อน

      how did you go about this please... I'm having the same issue

    • @starlomy
      @starlomy 8 หลายเดือนก่อน

      Are you using a macbook? I have been stuck on the 'permission denied (publickey)' with vscode. I get the connection on my Terminal but after getting the extension, editting the config file, it still gives me permission denied

    • @wonderswonders8772
      @wonderswonders8772 8 หลายเดือนก่อน

      @@starlomy I'm using window 🙂

    • @starlomy
      @starlomy 8 หลายเดือนก่อน

      I'm about to get fed up with the hurdle after hurdle that macbook shows up but at the same time it's really fulfilling when you scale over. MacOs Ventura 13.5.1 seems to refuse every solution!!!

  • @eagle_eye3116
    @eagle_eye3116 8 หลายเดือนก่อน

    error -- could not establish connection
    plzz help me to resolve it

    • @tuplespectra
      @tuplespectra  8 หลายเดือนก่อน

      make sure the connection details you have in your config is well indented. If you still cannot resolve the issue, I will suggest you watch the video from beginning again and follow along without missing any step. Let me know if you are able to fix it, what is the issue you found and what you did to fix it so others can learn.

  • @gamersharma7088
    @gamersharma7088 3 หลายเดือนก่อน

    for me t getting connection error
    can u provide me mail? i will send screenshot

  • @narayanbehera9527
    @narayanbehera9527 9 หลายเดือนก่อน

    Sir when I am openin irctc site it's showing site can't be reached

    • @tuplespectra
      @tuplespectra  9 หลายเดือนก่อน

      What site is that? Sorry I don't get the question.

  • @akila1642
    @akila1642 4 หลายเดือนก่อน

    @7:16

  • @rajaisrarkiani9975
    @rajaisrarkiani9975 11 หลายเดือนก่อน

    Hello,
    I'm trying to implement what you are teaching.
    But, I'm facing an error while connecting the remote ssh. The error is "Could not establish connection to 'instance name' ".
    I have followed every single step according to your video.
    Can you help me with it.

    • @tuplespectra
      @tuplespectra  11 หลายเดือนก่อน +1

      Ensure the details you enter in the config are well indented. Also, ensure to put the actual/current public IP of your EC2 instance and remember to point the "IdentityFile" to the absolute file path of your .pem file.

    • @kvande97
      @kvande97 11 หลายเดือนก่อน +2

      I had to keep the quotes on the IdentityFile path, I believe it's because my path has spaces. Maybe this will help you !

  • @akaspires037
    @akaspires037 5 หลายเดือนก่อน

    Failed to save 'Dockerfile': Unable to write file 'vscode-remote://ssh-remote+ip_address/opt/user-management-backend/Dockerfile' (NoPermissions (FileSystemError): Error: EACCES: permission denied, open '/opt/user-management-backend/Dockerfile')
    I am getting this error , if i try to save the file