Configure SSH to work with VSCode Plugin Remote-FS
I'm saving this here for myself or anyone else who comes across it. Basically I was getting an error when using the VSCode extension "Remote-FS" and connecting to my Ubuntu servers. The error message was "All configured authentication methods failed" and "connect ECONNREFUSED"
To fix this, I found an article suggesting I enable the correct PubKeyAcceptedAlgorithms
edit /etc/ssh/sshd_config
and add the following at the bottom
PubkeyAcceptedAlgorithms +ssh-rsa
restart ssh
sudo systemctl restart sshd
This should allow you to login now using VSCode and Remote-FS
For more information on Remote FS extension please visit the extension on the VSCode Marketplace.