-
Notifications
You must be signed in to change notification settings - Fork 367
Description
Is there an existing issue for this bug?
- I have searched the existing issues
Required Troubleshooting Steps
- I have followed these troubleshooting steps
- I have tried both values of the
remote.SSH.useLocalServer
setting
Connect Locally
It connects successfully
->
No response
Expected Behavior
When connect to the remote server, the password enter bar should have gray instruction belike: "Enter password for user@ip". The terminal should connect without displaying any unexpected control characters.
However, now the instruction is "Enter password for 1004huser@ip".
Steps To Reproduce
Use the Remote-SSH extension to connect to a remote server.
Observe the terminal output, where the string 1004h appears before the username and IP address (e.g., 1004huser@ip).
Remote-SSH Log
Remote-SSH Log
[23:28:57.980] Log Level: 2
[23:28:57.996] VS Code version: 1.94.2
[23:28:57.996] Remote-SSH version: [email protected]
[23:28:57.996] win32 x64
[23:28:58.005] SSH Resolver called for "ssh-remote+remote_ip", attempt 1
[23:28:58.006] "remote.SSH.useLocalServer": false
[23:28:58.006] "remote.SSH.useExecServer": true
[23:28:58.006] "remote.SSH.showLoginTerminal": false
[23:28:58.006] "remote.SSH.remotePlatform": {"remote_ip":"linux","remote_ip":"linux","remote_ip":"linux","remote_ip-root":"linux"}
[23:28:58.006] "remote.SSH.path": undefined
[23:28:58.006] "remote.SSH.configFile": undefined
[23:28:58.006] "remote.SSH.useFlock": true
[23:28:58.006] "remote.SSH.lockfilesInTmp": false
[23:28:58.006] "remote.SSH.localServerDownload": auto
[23:28:58.006] "remote.SSH.remoteServerListenOnSocket": false
[23:28:58.006] "remote.SSH.showLoginTerminal": false
[23:28:58.006] "remote.SSH.defaultExtensions": []
[23:28:58.006] "remote.SSH.loglevel": 2
[23:28:58.006] "remote.SSH.enableDynamicForwarding": true
[23:28:58.006] "remote.SSH.enableRemoteCommand": false
[23:28:58.006] "remote.SSH.serverPickPortsFromRange": {}
[23:28:58.006] "remote.SSH.serverInstallPath": {}
[23:28:58.007] "remote.SSH.permitPtyAllocation": false
[23:28:58.007] "remote.SSH.preferredLocalPortRange: undefined
[23:28:58.007] "remote.SSH.useCurlAndWgetConfigurationFiles: false
[23:28:58.035] SSH Resolver called for host: remote_ip
[23:28:58.035] Setting up SSH remote "remote_ip"
[23:28:58.041] Using commit id "384ff7382de624fb94dbaf6da11977bba1ecd427" and quality "stable" for server
[23:28:58.045] Script variables:
{
"InstallExitCode.24": "AlreadyInProgress",
"InstallExitCode.25": "ServerDownloadFailed",
"InstallExitCode.26": "NoDownloaderAvailable",
"InstallExitCode.27": "UnsupportedArch",
"InstallExitCode.28": "StatusCheckFailed",
"InstallExitCode.29": "NeedInsidersArch",
"InstallExitCode.30": "NoDownloaderAvailableForStatusCheck",
"InstallExitCode.31": "ServerTransferFailed",
"InstallExitCode.32": "ServerFailedToStart",
"InstallExitCode.33": "NeedInsidersWindows",
"InstallExitCode.34": "CreateInstallDirFailed",
"InstallExitCode.35": "UnsupportedPlatform",
"InstallExitCode.36": "ServerTerminatedCVE20201416",
"InstallExitCode.37": "UnpackFailed",
"InstallExitCode.38": "ChangeDirFailed",
"InstallExitCode.AlreadyInProgress": "24",
"InstallExitCode.ServerDownloadFailed": "25",
"InstallExitCode.NoDownloaderAvailable": "26",
"InstallExitCode.NoDownloaderAvailableForStatusCheck": "30",
"InstallExitCode.UnsupportedArch": "27",
"InstallExitCode.StatusCheckFailed": "28",
"InstallExitCode.NeedInsidersArch": "29",
"InstallExitCode.ServerTransferFailed": "31",
"InstallExitCode.ServerFailedToStart": "32",
"InstallExitCode.NeedInsidersWindows": "33",
"InstallExitCode.CreateInstallDirFailed": "34",
"InstallExitCode.UnsupportedPlatform": "35",
"InstallExitCode.ServerTerminatedCVE20201416": "36",
"InstallExitCode.UnpackFailed": "37",
"InstallExitCode.ChangeDirFailed": "38",
"InstallUnpackCode.Success": "success",
"InstallUnpackCode.Error": "error",
"InstallUnpackCode.MissingFiles": "missingFiles",
"uuid": "c6d9d8f55b54",
"startMarker": "c6d9d8f55b54: running",
"commitId": "384ff7382de624fb94dbaf6da11977bba1ecd427",
"quality": "stable",
"token": "1aa11111-1111-1111-11a1-11a111111aa1",
"vscodeAgentFolder": "$HOME/.vscode-server",
"allowClientDownload": "1",
"forceClientDownload": "0",
"cliNameInArchive": "code",
"ignoreWgetConfigFlag": " --no-config ",
"ignoreCurlConfigFlag": " --disable ",
"wgetTriesSegment": "--tries=1",
"listenArgs": "--on-host=127.0.0.1 --on-port",
"getDownloadServerStartTrigger": "c6d9d8f55b54:trigger_server_download",
"getDownloadServerEndTrigger": "c6d9d8f55b54:trigger_server_download_end",
"getProgressDownloading": "c6d9d8f55b54%%1%%",
"getProgressInstalling": "c6d9d8f55b54%%2%%"
}
[23:28:58.047] Install and start server if needed
[23:28:58.050] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[23:28:58.052] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[23:28:58.053] Checking ssh with "C:\Windows\ssh.exe -V"
[23:28:58.054] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[23:28:58.054] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[23:28:58.055] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[23:28:58.055] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[23:28:58.056] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[23:28:58.056] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[23:28:58.094] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2
[23:28:58.099] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 1496 "remote_ip" sh
[23:28:58.100] Generated SSH command: 'type "C:\Users\STIRLI~1\AppData\Local\Temp\vscode-linux-multi-line-command-remote_ip-249895947.sh" | "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 1496 "remote_ip" sh'
[23:28:58.101] Using connect timeout of 17 seconds
[23:28:58.101] Terminal shell path: C:\Windows\System32\cmd.exe
[23:28:58.350] > �[?9001h�[?1004h
[23:28:58.351] Got some output, clearing connection timeout
[23:28:58.478] > user@remote_ip's password:�]0;C:\Windows\System32\cmd.exe�
[23:28:58.479] Showing password prompt
Anything else?
I tried connecting to the same server with the same version of VSCode and Remote-SSH on two different laptops. One showed the 1004h, while the other did not. So I think it is related to local settings, but my two laptops have the same SSH config and VSCode config, synced with my account.
On the laptop where everything works normally, the log output does not include the lines > �[?9001h�[?1004h
.
Versions:
VSCode: 1.94.2 (also tried 1.85.2)
Remote - SSH: v0.115.0
OS: Windows 11
Remote Server OS: 22.04.4 LTS
Terminal Type (on remote server): xterm-256color (same with local)
By the way, when searching through issues, I noticed that 1004h has also appeared in logs; they all appeared after September 2024.
This error doesn't seem to affect my ability to connect to the server; I just want to remove it because it's quite annoying.
The edit was made to anonymize the server IP; no other content was changed.