jeanp413 / open-remote-ssh

VSCode Remote Development: Open any folder on a remote machine using SSH.
MIT License
309 stars 43 forks source link

Error getaddrinfo ENOTFOUND when using comments in ssh config #115

Open obreidenich opened 1 year ago

obreidenich commented 1 year ago

Low priority bug, but i've noticed remote connections failing to certain machines with error Error: getaddrinfo ENOTFOUND. Said machines all share a comment after their Hostname, in this case their static IP. An easy workaround is to move the comment to the next line.

[Info  - 19:00:35.668] Resolving ssh remote authority 'ssh-remote+example.com' (attemp #1)
[Trace  - 19:00:35.684] Identity keys:
/home/user/.ssh/example.com ssh-rsa SHA256:0000000000000000000000000000000000000000000=
[Error  - 19:00:35.697] Error resolving authority
Error: getaddrinfo ENOTFOUND example.com #192.101.010.101
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26)