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
gefragt vor 2 Jahren444 Aufrufe
2 Antworten
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
beantwortet vor 2 Jahren
profile pictureAWS
EXPERTE
Chris_G
überprüft vor 2 Jahren
0

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

AWS
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen