Connect VSCode to cluster: Difference between revisions

From DISI
Jump to navigation Jump to search
(Created page with "== 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 'Welc...")
 
No edit summary
Line 9: Line 9:
=== 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
- Choose 'Connect to Host...' > '+ Add New SSH host'
- Choose 'Connect to Host...' > '+ Add New SSH host'
- Type into the prompt this 'ssh -p 2222 <username>@localhost'
- Type into the prompt this 'ssh -p 2222 <username>@localhost'

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'