I have created an Ubuntu (18.04) EC2 instance. Using bash ssh I can log in without any issue. But when I try the same VSCode I'm running into issues.
My config file in .ssh/ has an entry like:
Host MyBox
HostName IPADDRESS
IdentityFile C:\Users\myname\mykey.pem
User ubuntu
I select this option to connect in VSCode but I get a dialog saying Could not establish connection to "MyBox". Connecting was canceled.
The output window says:
[14:03:27.443] > The authenticity of host 'XXX (XXX)' can't be established.
> ECDSA key fingerprint is SHA256:LALALALALA
> Are you sure you want to continue connecting (yes/no)?
[14:03:27.444] Detected fingerprint confirmation message
[14:03:27.444] Showing fingerprint confirmation dialog
[14:03:29.815] Fingerprint dialog canceled
[14:03:29.816] "install" terminal command canceled
[14:03:29.817] Resolver error: Connecting was canceled
[14:03:29.820] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"Canceled","askedPw":"0","askedPassphrase":"0","asked2fa":"0","askedHostKey":"1","gotUnrecognizedPrompt":"0","remoteInConfigFile":"1"},"measures":{"resolveAttempts":1,"retries":1}}
[14:03:29.823] ------
During the log in a Windows says Initializing VS Code Server. I'm not sure it means a connection was established or not.