Remote SSH to Delta in VS Code

Warning

This page is under construction.

  1. Install the Remote - SSH extension into VS Code.

    Remote ssh extension in VS Code.
  2. Follow the VS Code connect to a remote host instructions.

    The following are Delta-specific examples and tips:

    • Continue to follow the guide to set up a remote connection to Delta. It helps if you have a local $HOME/.ssh/config with your commonly used hosts already present on the laptop and SSH client where you will be using VS Code. Here is an example entry for Delta, change your username to your login name on Delta. VS Code will show hosts in your config in a pick list.

      SSH config:

      Host delta
              HostName login.delta.ncsa.illinois.edu
              User arnoldg
              ForwardX11 True
      
    • Once connected, you can work with the remote system as if it were local. When VS Code needs to install extension items on the remote system, it will go into your $HOME/.vscode-server on Delta. VS Code takes care of all the details for you:

      Remote server VS extensions:

    • Windows users: The login box of VS Code will display your login as 2fa<delta_username>, and you may not see a 2nd login box for Duo 2fa until you click the details link at lower right after you enter your password. Use the Duo passcode when the next password prompt appears at the top. Also see the Visual Studio Code remote development troubleshooting guide and search for “two-factor”.

    • If VS Code fails to connect after you have been using it for a while, check your quota (a full $HOME can prevent it from updating $HOME/.vscode on Delta). We have also seen cases where it was necessary to remove $HOME/.vscode on Delta similar the VS Code documentation - clean uninstall.