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년 전409회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠