Connect to remote server without SSH Key using VSCode and AWS SSM
Asked Answered
M

1

7

I'm looking for a way to connect to a server with VSCode without an SSH key. One way is to enable password authentication which I'd rather avoid. The servers are on company LAN but I still don't want to go that route.

We've looked at solutions such as Okta ASA for keyless SSH connection (client/agent model). And also AWS SSM with IAM Roles and profiles. Both work great through Terminal, but not sure how that connection could be passed through an IDE such as when you use a key or password.

Any thoughts or directions would be helpful. Thanks!

Mauretta answered 22/2, 2020 at 5:34 Comment(2)
were you successful?Socialize
Do you have a solution?Dnieper
G
0

Though it was asked almost 4 years, it is still relevant. The steps are as follows:

  • Assume aws ssm is working through command line.
  • Assume Remote Development using SSH is enabled from your VS Code.
  • Go to your ~/.ssh/config and add an entry per the following to connect using ProxyCommand
  Host i-63126312318
    IdentityFile ~/.ssh/id_rsa
    ProxyCommand ~/.ssh/aws-ssm-ec2-proxy-command.sh %h %r %p ~/.ssh/id_rsa.pub
    StrictHostKeyChecking no
Goddart answered 16/9 at 15:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.