VSCode SSH Password Prompt Issue with Remote Server

Andy Xuan 20 Reputation points
2025-09-04T05:58:14.36+00:00

An issue has been encountered while trying to log into a remote server using VSCode. The connection was successful until yesterday, but today, despite entering the correct password, the process hangs at "Opening Remote Server..." followed by "Downloading VSCode Server..." and then prompts for the password again.

Steps taken to troubleshoot the issue include:

  1. Connecting to the remote server via the terminal on the PC, which works fine.
  2. Attempting to remove the .vscode-server directory on the server by connecting through the terminal, but this did not resolve the issue.
  3. Confirming that virtual memory (kbytes, -v) is unlimited.
  4. Reviewing the log, which is displayed below:

User's image

The process appears to be stuck at the bottom line.

  1. Verifying the version of VSCode and confirming that it has not been updated recently.

Assistance is sought to resolve this login issue with the remote server. Thank you for any guidance.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Quinnie Quoc 7,475 Reputation points Independent Advisor
    2025-09-04T09:54:33.5366667+00:00

    Hi Andy Xuan,

    Thank you for sharing the detailed steps you've taken so far. Based on your description, this issue may be related to a known bug affecting the Remote-SSH extension, particularly when the VSCode Server fails to install or initialize correctly2. Since you've already removed the .vscode-server directory and confirmed terminal access, we recommend the following next steps:

    Ensure the remote machine has internet access, as the VSCode Server download may silently fail without it.

    Try disabling the remote.SSH.useLocalServer setting in VSCode (settings.json) and reconnect.

    Manually install the VSCode Server by running the generated SSH command outside of VSCode, as outlined in the Remote-SSH troubleshooting guide.

    If the issue persists, please share the full Remote-SSH log via Remote-SSH: Show Log from the Command Palette. This will help us pinpoint where the process is stalling.

    Best regards,

    Quinnie Quoc.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.