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年前408ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ