SSH connection by VS code dropping again and again
I am connecting with the linode server via SSH connection using VS code but my connection gets dropped in every few minutes despite having good internet connection. Please help how do I resolve this?
1 Reply
I did a quick Google search for "vscode dropping ssh connection" and found this post that discusses what it sounds like you're encountering:
Since there wasn't any specific errors that you shared, I wasn't sure if that link would be helpful, so I wanted to include some more:
Here are a couple of posts from Stack Overflow that discuss various possibilities for what is happening to your SSH connections:
- VS Code SSH Remote Connection issues - this pointed the blame toward failed symlinks.
- VScode SSH extension keeps disconnecting after moving to a new location - this will help if you're using VS Code's SSH extension.
Finally, in case this isn't because of VS Code, I'd also recommend the following Community Question post about configuring timeout settings in your /etc/ssh/sshd_config file: