Cursor SSH:Quick Reference: Difference between revisions
Appearance
m Josh moved page Cursor SSH:Cursor SSH Quick Reference to Cursor SSH:Quick Reference without leaving a redirect |
Major update - troubleshooting guide: Quick Reference (12 sections) |
||
| Line 4: | Line 4: | ||
==== '''Create SSH config''' (<code>~/.ssh/config</code>): ==== | ==== '''Create SSH config''' (<code>~/.ssh/config</code>): ==== | ||
<pre> | |||
Host raspberrypi | |||
HostName 87.106.61.62 | |||
Port 22223 | |||
User root | |||
IdentityFile ~/.ssh/id_rsa | |||
</pre> | </pre> | ||
==== '''Generate and copy SSH key''': ==== | ==== '''Generate and copy SSH key''': ==== | ||
<pre class="lang-bash"> | |||
ssh-keygen -t ed25519 -C "cursor-raspberrypi" | |||
ssh-copy-id -p 22223 root@87.106.61.62 | |||
</pre> | </pre> | ||
==== '''Test connection''': ==== | ==== '''Test connection''': ==== | ||
<pre class="lang-bash"> | |||
ssh -p 22223 root@87.106.61.62 | |||
</pre> | </pre> | ||
=== '''In Cursor''': === | === '''In Cursor''': === | ||
* Install "Remote - SSH" extension | |||
* Press <code>F1</code> → <code>Remote-SSH: Connect to Host...</code> | |||
* Select <code>raspberrypi</code> | |||
=== On VPS (Already Done ✅): === | === On VPS (Already Done ✅): === | ||
* ✅ Port forward configured: <code>22223</code> → <code>10.8.0.3:22</code> | |||
* ⚠️ '''Action Required''': Add port <code>22223</code> to IONOS firewall | |||
=== On Raspberry Pi: === | === 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 <code>/root/.ssh/authorized_keys</code> | |||
== Connection String == | == Connection String == | ||
| Line 48: | Line 58: | ||
== Cursor Connection == | == Cursor Connection == | ||
* '''Host''': <code>raspberrypi</code> (from SSH config) | |||
* '''Or direct''': <code>root@87.106.61.62:22223</code> | * '''Or direct''': <code>root@87.106.61.62:22223</code> | ||
| Line 63: | Line 74: | ||
| Cursor server fails || Clear cache: <code>rm -rf ~/.cursor-server</code> on Pi | | Cursor server fails || Clear cache: <code>rm -rf ~/.cursor-server</code> on Pi | ||
|} | |} | ||
== Full Documentation == | == Full Documentation == | ||
See: [Cursor SSH Setup Guide] | See: [[Cursor SSH:Setup|Cursor SSH Setup Guide]] | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Documentation/Cursor SSH]] | [[Category:Documentation/Cursor SSH]] | ||
Latest revision as of 13:28, 1 January 2026
Quick Setup Checklist
[edit]On Your Local Machine (where Cursor runs):
[edit]Create SSH config (~/.ssh/config):
[edit]Host raspberrypi
HostName 87.106.61.62
Port 22223
User root
IdentityFile ~/.ssh/id_rsa
Generate and copy SSH key:
[edit]ssh-keygen -t ed25519 -C "cursor-raspberrypi" ssh-copy-id -p 22223 root@87.106.61.62
Test connection:
[edit]ssh -p 22223 root@87.106.61.62
In Cursor:
[edit]- Install "Remote - SSH" extension
- Press
F1→Remote-SSH: Connect to Host...
- Select
raspberrypi
On VPS (Already Done ✅):
[edit]- ✅ Port forward configured:
22223→10.8.0.3:22
- ⚠️ Action Required: Add port
22223to IONOS firewall
On Raspberry Pi:
[edit]- ✅ 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
[edit]ssh -p 22223 root@87.106.61.62
Cursor Connection
[edit]- Host:
raspberrypi(from SSH config)
- Or direct:
root@87.106.61.62:22223
Troubleshooting
[edit]| 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
|