Connect VSCode to cluster

From DISI
Jump to navigation Jump to search

Link

https://code.visualstudio.com/docs/remote/ssh

Instruction

1. Install extension

Go to 'Extension' tab in VSCode, look up 'Remote-SSH' and install

2. Setup tunnel

To connect with VS code, forward the 22 port on the machine that you’d like to use using the following command

ssh -CL localhost:2222:epyc:22 <username>@portal3.ucsf.bkslab.org

3. Setup configuration in Remote - SSH

- Click on the 'Connect to...' under Start in the 'Welcome' page

- Choose 'Connect to Host...' > '+ Add New SSH host'

- Type into the prompt this

ssh -p 2222 <username>@localhost