Jump to content

Cursor SSH:Quick Reference: Difference between revisions

From jb-vpn.uk Wiki
No edit summary
Tag: wikieditor
Major update - troubleshooting guide: Quick Reference (12 sections)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:


==== '''Create SSH config''' (<code>~/.ssh/config</code>): ====
==== '''Create SSH config''' (<code>~/.ssh/config</code>): ====
  <pre>
 
  Host raspberrypi
<pre>
      HostName 87.106.61.62
Host raspberrypi
      Port 22223
    HostName 87.106.61.62
      User root
    Port 22223
      IdentityFile ~/.ssh/id_rsa
    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"
<pre class="lang-bash">
  ssh-copy-id -p 22223 root@87.106.61.62
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 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>
* Install "Remote - SSH" extension
  '' Select <code>raspberrypi</code>
 
* 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>
* ✅ Port forward configured: <code>22223</code> → <code>10.8.0.3:22</code>
'' ⚠️ '''Action Required''': Add port <code>22223</code> to IONOS firewall
 
* ⚠️ '''Action Required''': Add port <code>22223</code> to IONOS firewall


=== On Raspberry Pi: ===
=== On Raspberry Pi: ===


'' ✅ SSH server enabled
* ✅ SSH server enabled
'' ✅ Root SSH access enabled (see main guide)
 
'' ✅ Connected to VPN (10.8.0.3)
* ✅ Root SSH access enabled (see main guide)
'' ⚠️ '''Action Required''': Add your SSH public key to <code>/root/.ssh/authorized_keys</code>
 
* ✅ 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)
* '''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](cursor-ssh-setup.md)
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 F1Remote-SSH: Connect to Host...
  • Select raspberrypi

On VPS (Already Done ✅):

[edit]
  • ✅ Port forward configured: 2222310.8.0.3:22
  • ⚠️ Action Required: Add port 22223 to 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

Full Documentation

[edit]

See: Cursor SSH Setup Guide