1.6 KiB
1.6 KiB
VS Code Remote SSH Setup Guide
1. Install the Extension
- Open VS Code on your local PC.
- Go to the Extensions view (Square icon on the left).
- Search for "Remote - SSH" (by Microsoft).
- Click Install.
2. Configure the Connection
- Press
F1(orCtrl+Shift+P) to open the Command Palette. - Type "Remote-SSH: Open SSH Configuration File".
- Select the first option (usually
C:\Users\...\.ssh\config). - Add the following entry (replace with actual values):
Host posimai-fortress
HostName 100.x.y.z # Tailscale IP of the Ubuntu VM
User ubuntu # Username on the VM
# IdentityFile ~/.ssh/id_rsa # Path to your private key (if used)
Tip: Using the Tailscale IP (100.x...) is recommended as it works from anywhere (home or office).
3. Connect!
- Click the green "><" icon at the very bottom-left corner of VS Code.
- Select "Connect to Host...".
- Select
posimai-fortress. - A new VS Code window will open. It might ask for a password (if you haven't set up keys).
- Once connected, click "Open Folder" and navigate to
/home/ubuntu/dev/posimai/.
4. Verify
- Open the Terminal in VS Code (
Ctrl+J). - Type
hostname. It should sayubuntu(or whatever you named the VM), NOT your local PC name. - Success! You are now inside the Fortress. All code stays there.
Next Step:
Once connected, open a New Cursor Chat and paste the CURSOR_CHAT_MASTER_CONTEXT.md prompt.