Issue
I'm trying to connect to a server via remote-ssh extension
for Visual Studio Code, however, I'm getting the following error:
Everything is fine on the server-side, and the connection to this host worked fine for a while.
Any suggestions to re-access the server via remote-ssh extension
?
Solution
After a while, I found a solution that can be useful to others.
In VS Code press:
CTRL + SHIFT + P
Type or select the option:
Remote-SSH: kill VS Code Server on Host...
Select the host name:
And after this procedure, try connecting again to the host.
That worked for me.
Answered By - whoisraibolt Answer Checked By - Mary Flores (WPSolving Volunteer)