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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则