Lightsail debian instance ssh with vs code

0

Hey everyone,

I am trying to connect to my debian instance with vs code. I created an debian instance with a static ip 35.1XX.XXX.XXX. I installed the remote ssh extension in vs code. I downloaded the default key from the debian instance and placed it in my .ssh folder. The config file for the ssh extrension looks like that:

Host dlmDev
  HostName 35.1XX.XXX.XXX
  User admin
  IdentityFile C:\Users\XXX\.ssh\aws-key\LightsailDefaultKey-eu-central-1.pem

If I open an ssh vs code window and select linux as a the platform, I just get an error that the connection did not work. I just don't know what to do now. Maybe someone can help me with this stupid question? Thanks!

Niko
已提問 2 年前檢視次數 441 次
2 個答案
1

Just wondering, can you do normal SSH? Have you opened firewall / Security Group Rules at port 22? Here is a reference: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/understanding-firewall-and-port-mappings-in-amazon-lightsail

profile pictureAWS
已回答 2 年前
profile pictureAWS
專家
Chris_G
已審閱 2 年前
0

Please put the keypair file (.pem) under C:\Users\XXX\.ssh, and try again.

AWS
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南