microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.62k stars 279 forks source link

[Remote-SSH Bug]: My terminal won't allow me to type when connect to a remote ssh server. #10129

Open darcypeake opened 1 month ago

darcypeake commented 1 month ago

Is there an existing issue for this bug?

Required Troubleshooting Steps

Connect Locally

It connects successfully

->

No response

Expected Behavior

I have tried everything suggested in the forums - playing around with the settings, changing the default profile to powershell etc. but nothing seems to be working.

Steps To Reproduce

It is a two step log in I have with first inputting my password and then an authenticator password is needed.

Remote-SSH Log

Remote-SSH Log

``` [PASTE LOG HERE] ```

Anything else?

Screenshot 2024-08-01 at 10 37 24
roblourens commented 1 month ago

What's the remote OS, what shell do you use, anything interesting about how it's configured?

meganrogge commented 1 month ago

Can you share your settings.json file and also do a trace log while creating a terminal? https://github.com/microsoft/vscode/wiki/Terminal-Issues#enabling-trace-logging

darcypeake commented 1 month ago

This is my Linux .json settings file - I have tried changing it to powershell and nothing happened:

[{
    "terminal.integrated.defaultProfile.linux": "bash",
    "terminal.integrated.shellIntegration.enabled": false,
    "workbench.editor.enablePreview": false,
    "editor.minimap.enabled": false,
    "terminal.integrated.automationProfile.linux": {
    },
}](url)

This is my Log trace is with terminal:

2024-08-05 08:10:37.423 [debug] [1722582] The terminal's pty host process is starting []
2024-08-05 08:10:37.464 [debug] [3d3aa63] The terminal's pty host process is starting []
2024-08-05 08:10:37.748 [trace] [1722582] Reconnected to local terminals []
2024-08-05 08:10:37.748 [trace] [1722582] Pty host ready []
2024-08-05 08:10:37.749 [trace] [1722582] terminalInstance#ctor (instanceId: 1) [{"attachPersistentProcess":{"id":1,"title":"","titleSource":1,"pid":-1,"workspaceId":"1722582337555","workspaceName":"","cwd":"/Users/dpeake","isOrphan":true,"icon":{"id":"terminal","defaults":{"fontCharacter":"\\ea85"}},"environmentVariableCollections":[["vscode.git",[["GIT_ASKPASS",{"variable":"GIT_ASKPASS","value":"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh","type":1,"options":{"applyAtProcessCreation":true,"applyAtShellIntegration":false}}],["VSCODE_GIT_ASKPASS_NODE",{"variable":"VSCODE_GIT_ASKPASS_NODE","value":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)","type":1,"options":{"applyAtProcessCreation":true,"applyAtShellIntegration":false}}],["VSCODE_GIT_ASKPASS_EXTRA_ARGS",{"variable":"VSCODE_GIT_ASKPASS_EXTRA_ARGS","value":"","type":1,"options":{"applyAtProcessCreation":true,"applyAtShellIntegration":false}}],["VSCODE_GIT_ASKPASS_MAIN",{"variable":"VSCODE_GIT_ASKPASS_MAIN","value":"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js","type":1,"options":{"applyAtProcessCreation":true,"applyAtShellIntegration":false}}],["VSCODE_GIT_IPC_HANDLE",{"variable":"VSCODE_GIT_IPC_HANDLE","value":"/var/folders/44/xp99pknd7pn6nz0gpzpk0wqw0000gn/T/vscode-git-f6dcd2c609.sock","type":1,"options":{"applyAtProcessCreation":true,"applyAtShellIntegration":false}}]],[["",{"description":"Enables the following features: git auth provider"}]]]],"hasChildProcesses":false,"shellIntegrationNonce":"72303322-d949-4d29-a503-1030de5d284c"}}]
2024-08-05 08:10:37.815 [debug] [1722582] Unbinding from mouse events. []
2024-08-05 08:10:37.827 [debug] [1722582] Starting pty host []
2024-08-05 08:10:37.840 [trace] [1722582] Renderer->PtyHost#connect: before acquirePort []
2024-08-05 08:10:37.926 [trace] [1722582] Renderer->PtyHost#connect: connection established []
2024-08-05 08:10:38.056 [debug] [1722582] terminalInstance added capability [1]
2024-08-05 08:10:38.080 [trace] [1722582] Webgl was loaded []
2024-08-05 08:10:38.119 [debug] [1722582] Terminal process ready (shellProcessId: 16477) []
2024-08-05 08:10:38.120 [debug] [1722582] terminalInstance added capability [3]

2024-08-05 08:10:38.150 [debug] [1722582] terminalInstance added capability [2]
2024-08-05 08:10:38.289 [info] [1722582] Latency measurements for local backend
window<->ptyhost (message port): 24.80ms
window<->ptyhostservice<->ptyhost: 1.20ms
ptyhostservice<->ptyhost: 0.63ms []
2024-08-05 08:10:38.383 [debug] [1722582] parsing data "%                                                                                                                                                                   

(base) dpeake@Ds-MacBook-Air-2 ~ % [?2004h" [[27,91,49,109,27,91,55,109,37,27,91,50,55,109,27,91,49,109,27,91,48,109,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,13,32,13,13,27,91,48,109,27,91,50,55,109,27,91,50,52,109,27,91,74,40,98,97,115,101,41,32,100,112,101,97,107,101,64,68,115,45,77,97,99,66,111,111,107,45,65,105,114,45,50,32,126,32,37,32,27,91,75,27,91,63,50,48,48,52,104]]
2024-08-05 08:11:00.685 [trace] [1722582] terminalMultiLineLinkDetector#detect text ["WARNING in ffunction: lambda values out of fit range."]
2024-08-05 08:11:00.711 [trace] [1722582] terminalLocalLinkDetector#detect text ["WARNING in ffunction: lambda values out of fit range."]
2024-08-05 08:11:00.712 [trace] [1722582] terminalLocalLinkDetector#detect parsedLinks [[]]
2024-08-05 08:11:00.712 [trace] [1722582] terminalUriLinkDetector#detect computedLinks [[]]
2024-08-05 08:11:01.966 [trace] [1722582] terminalMultiLineLinkDetector#detect text ["Requested range is: 0.00000E+00  -  2.87500E-01"]
2024-08-05 08:11:01.967 [trace] [1722582] terminalLocalLinkDetector#detect text ["Requested range is: 0.00000E+00  -  2.87500E-01"]
2024-08-05 08:11:01.968 [trace] [1722582] terminalLocalLinkDetector#detect parsedLinks [[{"path":{"index":16,"text":"is:"},"suffix":{"row":0,"col":0,"suffix":{"index":19,"text":" 0.00000"}}}]]
2024-08-05 08:11:01.968 [trace] [1722582] terminalLinkHelpers#updateLinkWithRelativeCwd cwd [null]
2024-08-05 08:11:01.969 [trace] [1722582] terminalLocalLinkDetector#detect linkCandidates [["is:"]]
2024-08-05 08:11:01.969 [trace] [1722582] terminalUriLinkDetector#detect computedLinks [[]]
2024-08-05 08:11:01.982 [trace] [1722582] terminalMultiLineLinkDetector#detect text ["WARNING in ffunction: lambda values out of fit range."]
2024-08-05 08:11:01.982 [trace] [1722582] terminalLocalLinkDetector#detect text ["WARNING in ffunction: lambda values out of fit range."]
2024-08-05 08:11:01.982 [trace] [1722582] terminalLocalLinkDetector#detect parsedLinks [[]]
2024-08-05 08:11:01.983 [trace] [1722582] terminalUriLinkDetector#detect computedLinks [[]]
2024-08-05 08:11:01.998 [trace] [1722582] terminalMultiLineLinkDetector#detect text ["----- No more such warnings will be issued ------"]
2024-08-05 08:11:01.998 [trace] [1722582] terminalLocalLinkDetector#detect text ["----- No more such warnings will be issued ------"]
2024-08-05 08:11:01.999 [trace] [1722582] terminalLocalLinkDetector#detect parsedLinks [[]]
2024-08-05 08:11:01.999 [trace] [1722582] terminalUriLinkDetector#detect computedLinks [[]]
2024-08-05 08:11:02.016 [trace] [1722582] terminalMultiLineLinkDetector#detect text ["Connection to login-icelake.hpc.cam.ac.uk closed."]
2024-08-05 08:11:02.016 [trace] [1722582] terminalLocalLinkDetector#detect text ["Connection to login-icelake.hpc.cam.ac.uk closed."]
2024-08-05 08:11:02.016 [trace] [1722582] terminalLocalLinkDetector#detect parsedLinks [[]]
2024-08-05 08:11:02.016 [trace] [1722582] terminalUriLinkDetector#detect computedLinks [[]]
2024-08-05 08:11:02.033 [trace] [1722582] terminalMultiLineLinkDetector#detect text ["ARES                                        Pictures                                    SRR307028_2.fastq                           get-pip.py"]
2024-08-05 08:11:02.033 [trace] [1722582] terminalLocalLinkDetector#detect text ["ARES                                        Pictures                                    SRR307028_2.fastq                           get-pip.py"]
2024-08-05 08:11:02.034 [trace] [1722582] terminalLocalLinkDetector#detect parsedLinks [[]]
2024-08-05 08:11:02.034 [trace] [1722582] terminalUriLinkDetector#detect computedLinks [[]]
2024-08-05 08:11:02.049 [trace] [1722582] terminalMultiLineLinkDetector#detect text ["CAESAR                                      PythonPractice                              SRR307029_2.fastq                           hhZjet project"]
2024-08-05 08:11:02.049 [trace] [1722582] terminalLocalLinkDetector#detect text ["CAESAR                                      PythonPractice                              SRR307029_2.fastq                           hhZjet project"]
2024-08-05 08:11:02.050 [trace] [1722582] terminalLocalLinkDetector#detect parsedLinks [[]]
2024-08-05 08:11:02.050 [trace] [1722582] terminalUriLinkDetector#detect computedLinks [[]]
2024-08-05 08:11:02.065 [trace] [1722582] terminalMultiLineLinkDetector#detect text ["Desktop                                     QCDprograms                                 SRR307030_1.fastq                           line_profiler"]
2024-08-05 08:11:02.065 [trace] [1722582] terminalLocalLinkDetector#detect text ["Desktop                                     QCDprograms                                 SRR307030_1.fastq                           line_profiler"]
2024-08-05 08:11:02.065 [trace] [1722582] terminalLocalLinkDetector#detect parsedLinks [[]]
2024-08-05 08:11:02.065 [trace] [1722582] terminalUriLinkDetector#detect computedLinks [[]]
2024-08-05 08:11:02.099 [trace] [1722582] terminalMultiLineLinkDetector#detect text ["Documents                                   SRR307024_2.fastq                           SRR307030_2.fastq                           local"]
2024-08-05 08:11:02.099 [trace] [1722582] terminalLocalLinkDetector#detect text ["Documents                                   SRR307024_2.fastq                           SRR307030_2.fastq                           local"]
2024-08-05 08:11:02.099 [trace] [1722582] terminalLocalLinkDetector#detect parsedLinks [[]]
2024-08-05 08:11:02.100 [trace] [1722582] terminalUriLinkDetector#detect computedLinks [[]]
2024-08-05 08:11:25.912 [trace] [3d3aa63] terminalInstance#ctor (instanceId: 1) [{"name":"Check remote","executable":"/bin/sh","args":["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --no-config --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata:true' -O - http://169.254.169.254/metadata/instance?api-version=2019-03-11\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --disable --connect-timeout 7 -s --header='Metadata:true' http://169.254.169.254/metadata/instance?api-version=2019-03-11\n\tfi\nfi\nexit 0"],"cwd":{"$mid":1,"external":"vscode-remote://ssh-remote%2Blogin-icelake.hpc.cam.ac.uk/","path":"/","scheme":"vscode-remote","authority":"ssh-remote+login-icelake.hpc.cam.ac.uk"},"ignoreConfigurationCwd":true,"hideFromUser":true,"extHostTerminalId":"3af28881-583d-4479-bb97-a5a64656c931","isExtensionOwnedTerminal":true,"isTransient":true}]
2024-08-05 08:11:25.916 [trace] [3d3aa63] terminalInstance#ctor (instanceId: 2) [{"name":"Check remote","executable":"/bin/sh","args":["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --no-config --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/latest/meta-data/instance-id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --disable --connect-timeout 7 -s  http://169.254.169.254/latest/meta-data/instance-id\n\tfi\nfi\nexit 0"],"cwd":{"$mid":1,"external":"vscode-remote://ssh-remote%2Blogin-icelake.hpc.cam.ac.uk/","path":"/","scheme":"vscode-remote","authority":"ssh-remote+login-icelake.hpc.cam.ac.uk"},"ignoreConfigurationCwd":true,"hideFromUser":true,"extHostTerminalId":"4c9ee055-d4db-413c-8e1a-8a0ef0fce3db","isExtensionOwnedTerminal":true,"isTransient":true}]
2024-08-05 08:11:25.917 [trace] [3d3aa63] terminalInstance#ctor (instanceId: 3) [{"name":"Check remote","executable":"/bin/sh","args":["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --no-config --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/metadata/v1/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --disable --connect-timeout 7 -s  http://169.254.169.254/metadata/v1/id\n\tfi\nfi\nexit 0"],"cwd":{"$mid":1,"external":"vscode-remote://ssh-remote%2Blogin-icelake.hpc.cam.ac.uk/","path":"/","scheme":"vscode-remote","authority":"ssh-remote+login-icelake.hpc.cam.ac.uk"},"ignoreConfigurationCwd":true,"hideFromUser":true,"extHostTerminalId":"65e0fd07-7fb6-4250-bd35-62b11316f4ad","isExtensionOwnedTerminal":true,"isTransient":true}]
2024-08-05 08:11:25.918 [trace] [3d3aa63] terminalInstance#ctor (instanceId: 4) [{"name":"Check remote","executable":"/bin/sh","args":["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --no-config --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata-Flavor:Google' -O - http://metadata.google.internal/computeMetadata/v1/instance/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --disable --connect-timeout 7 -s --header='Metadata-Flavor:Google' http://metadata.google.internal/computeMetadata/v1/instance/id\n\tfi\nfi\nexit 0"],"cwd":{"$mid":1,"external":"vscode-remote://ssh-remote%2Blogin-icelake.hpc.cam.ac.uk/","path":"/","scheme":"vscode-remote","authority":"ssh-remote+login-icelake.hpc.cam.ac.uk"},"ignoreConfigurationCwd":true,"hideFromUser":true,"extHostTerminalId":"e951f113-f3cb-4cda-a15d-ae37a7aba99f","isExtensionOwnedTerminal":true,"isTransient":true}]
2024-08-05 08:11:27.337 [trace] [3d3aa63] Reconnected to remote terminals []
2024-08-05 08:11:27.338 [trace] [3d3aa63] Pty host ready []
2024-08-05 08:11:29.103 [debug] [3d3aa63] The terminal's pty host process is starting []
2024-08-05 08:11:29.103 [trace] [3d3aa63] IPtyHostController#onPtyHostRestart []

I haven't copied all of the Log trace as it has some outputs of my code which needs to remain private - but everything but the code output is here.

darcypeake commented 1 month ago

What's the remote OS, what shell do you use, anything interesting about how it's configured?

  1. Remote OS: OS Name: macOS OS Version: 11.1 (Big Sur) Kernel Version: 20.2.0 Architecture: ARM64 (Apple M1)
  1. /bin/zsh