vscode remote连不上aws ec2 linux

vscode remote连不上aws ec2 linux.

已经用ssh-keygen生成id_rsa, id_rsa.pub, pub已经放到aws ec2-user的.ssh/autorized_keys.
从windows用命令行ssh ec2-user@$myip 已经可以直接免密连上。
但是从vscode remote还是连不上。

错误信息:Permission denied (public key).
The process tried to write to a nonexistent pipe.

vscode已经按照说明配置如下:(~/.ssh/config):
Host myhost
HostName: $myip
User: ec2-user
IdentityFile ~/.ssh/id_rsa

https://blog.csdn.net/diyiday/article/details/90694684

谢谢回答。不过没有帮助。

该链接是baidu搜索出现在第一页里的链接,早已试过。

今天又试一遍,发现装完remote-ssh重启后左侧连图标都没出现。。。各种奇葩问题。看来不好好折腾一番是没法好好用这个“非常好用”的编辑器的。。

在带来一些好的feature的同时总是有那么些不尽如人意。。

again, 非常感谢帮助和回答。只是,问题还在。。