As usual, select “Connect to host” and enter the server address of HPC (or if you have it in your .ssh/config file, simply select the name you assigned to the HPC address)

Untitled

<aside> ⚠️ If you are on Mac, at this point you just need to input the OTP token in the password prompt and you’re logged in. If this does not work, continue reading.

</aside>

[SOLVED] Hanging Password Prompt

Sometimes the password prompt hangs (seen this problem on Windows). To fix this,

  1. Ignore the vscode password prompt, click “details” in the bottom left corner

    Untitled

  2. It will show you the terminal, enter your password and OTP here directly

    Untitled

  3. MOST IMPORTANTLY, the prompt will hang there forever, giving you a sense that you are not logged in. But if you just click it and press enter (without entering anything), it will disappear after a few times. If you are at this stage, you are already in, then you can select the directory you want to work in directly.

    Untitled