Cursor SSH:Quick Reference: Difference between revisions
Appearance
Added troubleshooting guide: Cursor SSH Setup - Quick Reference |
No edit summary Tag: wikieditor |
||
| Line 1: | Line 1: | ||
== Quick Setup Checklist == | == Quick Setup Checklist == | ||
=== On Your Local Machine (where Cursor runs): === | === On Your Local Machine (where Cursor runs): === | ||
= '''Create SSH config''' (<code>~/.ssh/config</code>): = | ==== '''Create SSH config''' (<code>~/.ssh/config</code>): ==== | ||
<pre> | <pre> | ||
Host raspberrypi | Host raspberrypi | ||
| Line 14: | Line 12: | ||
</pre> | </pre> | ||
= '''Generate and copy SSH key''': = | ==== '''Generate and copy SSH key''': ==== | ||
<pre class="lang-bash"> | <pre class="lang-bash"> | ||
ssh-keygen -t ed25519 -C "cursor-raspberrypi" | ssh-keygen -t ed25519 -C "cursor-raspberrypi" | ||
| Line 20: | Line 18: | ||
</pre> | </pre> | ||
= '''Test connection''': = | ==== '''Test connection''': ==== | ||
<pre class="lang-bash"> | <pre class="lang-bash"> | ||
ssh -p 22223 root@87.106.61.62 | ssh -p 22223 root@87.106.61.62 | ||
</pre> | </pre> | ||
= '''In Cursor''': = | === '''In Cursor''': === | ||
'' Install "Remote - SSH" extension | '' Install "Remote - SSH" extension | ||
'' Press <code>F1</code> → <code>Remote-SSH: Connect to Host...</code> | '' Press <code>F1</code> → <code>Remote-SSH: Connect to Host...</code> | ||
Revision as of 13:21, 1 January 2026
Quick Setup Checklist
On Your Local Machine (where Cursor runs):
Create SSH config (~/.ssh/config):
Host raspberrypi
HostName 87.106.61.62
Port 22223
User root
IdentityFile ~/.ssh/id_rsa
Generate and copy SSH key:
ssh-keygen -t ed25519 -C "cursor-raspberrypi" ssh-copy-id -p 22223 root@87.106.61.62
Test connection:
ssh -p 22223 root@87.106.61.62
In Cursor:
Install "Remote - SSH" extension PressF1→Remote-SSH: Connect to Host...Selectraspberrypi
On VPS (Already Done ✅):
✅ Port forward configured: 22223 → 10.8.0.3:22
⚠️ Action Required: Add port 22223 to IONOS firewall
On Raspberry Pi:
✅ SSH server enabled
✅ Root SSH access enabled (see main guide)
✅ Connected to VPN (10.8.0.3)
⚠️ Action Required: Add your SSH public key to /root/.ssh/authorized_keys
Connection String
ssh -p 22223 root@87.106.61.62
Cursor Connection
Host: raspberrypi (from SSH config)
- Or direct:
root@87.106.61.62:22223
Troubleshooting
| Issue | Solution |
| Connection timeout | Check IONOS firewall for port 22223 |
| Permission denied | Copy SSH key: ssh-copy-id -p 22223 root@87.106.61.62
|
| Cursor server fails | Clear cache: rm -rf ~/.cursor-server on Pi
|
Full Documentation
See: [Cursor SSH Setup Guide](cursor-ssh-setup.md)