Connect VSCode to cluster: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
=== 2. Setup tunnel === | === 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 | 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 | ssh -CL localhost:2222:epyc:22 <username>@portal3.ucsf.bkslab.org | ||
=== 3. Setup configuration in Remote - SSH === | === 3. Setup configuration in Remote - SSH === | ||
- Click on the 'Connect to...' under Start in the 'Welcome' page | - Click on the 'Connect to...' under Start in the 'Welcome' page | ||
| Line 12: | Line 12: | ||
- Choose 'Connect to Host...' > '+ Add New SSH host' | - Choose 'Connect to Host...' > '+ Add New SSH host' | ||
- Type into the prompt this | - Type into the prompt this | ||
ssh -p 2222 <username>@localhost | |||
Latest revision as of 00:09, 7 October 2025
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