SSH connection extremely unstable when Python extension is active
See original GitHub issueEnvironment data
- VS Code version: 1.42.0-insider
- Extension version (available under the Extensions sidebar): 2020.1.58038
- OS and version: Darwin x64 18.6.0
- Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.3
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A (but I get these commands printed in the terminal automatically on startup)
source /home/jonathan.pan/python/bin/activate
conda activate base
- Relevant/affected Python packages and their versions: N/A
- Jedi or Language Server? (i.e. what is
"python.jediEnabled"
set to; more info #3977): Enabled
Expected behaviour
SSH connection stays active when connections are active on both sides.
Actual behaviour
SSH connection on VSCode drops often (every few minutes) and sporadically. My coworkers and I all noticed this happening and stopped using the extension for awhile. However, I am writing some Python recently and the extension is extremely useful so would like to get it working.
When the Python extension is disabled, my connection never drops.
Steps to reproduce:
I have no idea why it’s doing it, however it is not affecting only me. It will eventually drop the SSH connection given enough time.
Logs
No output.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:16 (7 by maintainers)
Top Results From Across the Web
Fixing VSCode when it keeps dropping ssh connections
I really like VSCode, and I use the ssh plugin to edit code on remote machines, but recently the ssh connection has been...
Read more >Remote Development Tips and Tricks - Visual Studio Code
The Remote - SSH extension installs and maintains the "VS Code Server". The server is started with a randomly generated key, and any...
Read more >Working Remotely with Visual Studio Code and SSH
Step 3: Install Extensions for VSCode. Using Visual Studio Code and SSH. Remotely connecting to the CS Department Linux computers; Using the terminal ......
Read more >Chapter 5. Issues to be aware of for bullseye - Debian
No new SSH connections possible during upgrade. Although existing Secure Shell (SSH) connections should continue to work through the upgrade as usual, due...
Read more >Troubleshooting GitLab Runner
Debug logging can be enabled in the global section of the config.toml by ... If you get the error Unable to query docker...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @karthiknadig, this issue is inhibiting the usage of this plugin by the many developers in our organization and it’d be a high value add to resolve. Any chance that this could be investigated soon?
Starting with 2021.10.* we have switched over to the new system of discovering environments. There should be reduced load on the system on first load, and following loads should fair better. If you run into issue, please file a bug and make sure you use
"python.logging.level": "debug"
when filing with the logs.@LinqLover Jupyter notebooks are now a separate extension so if this is continuing to be a issue, please file a bug on https://github.com/microsoft/vscode-jupyter