Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
jb-vpn.uk Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Cursor SSH:Setup
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Step-by-Step Configuration == === 1. Enable SSH and Root Access on Raspberry Pi === '''Enable SSH server (on Raspberry Pi):''' <pre class="lang-bash"> sudo systemctl enable ssh sudo systemctl start ssh </pre> '''Or via raspi-config:''' <pre class="lang-bash"> sudo raspi-config == Navigate to: Interfacing Options β SSH β Enable == </pre> '''Enable root SSH access (on Raspberry Pi):''' <pre class="lang-bash"> == Set root password (if not already set) == r == Enable root login via SSH == sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config == Or if using password auth: == sudo sed -i 's/#PermitRootLogin yes/PermitRootLogin yes/' /etc/ssh/sshd_config == Restart SSH service == sudo systemctl restart ssh </pre> '''Verify SSH is running:''' <pre class="lang-bash"> sudo systemctl status ssh == Should show: active (running) == </pre> '''Test root SSH access:''' <pre class="lang-bash"> ssh root@localhost == Should connect as root == </pre> === 2. Configure SSH on Your Local Machine === Create or edit <code>~/.ssh/config</code> on your local machine (where Cursor is installed): <pre class="lang-bash"> ==== On your local machine (not the VPS) ==== nano ~/.ssh/config </pre> Add the following configuration: <pre> Host raspberrypi HostName 87.106.61.62 Port 22223 User root IdentityFile ~/.ssh/id_rsa ServerAliveInterval 60 ServerAliveCountMax 3 StrictHostKeyChecking no UserKnownHostsFile ~/.ssh/known_hosts </pre> '''Configuration Options:''' * <code>Host raspberrypi</code>: Alias name (use any name you prefer) * <code>HostName 87.106.61.62</code>: Your VPS public IP * <code>Port 22223</code>: External port for Raspberry Pi forward * <code>User root</code>: Username on Raspberry Pi (using root for Cursor) * <code>IdentityFile ~/.ssh/id_rsa</code>: Path to your SSH private key * <code>ServerAliveInterval 60</code>: Keep connection alive (prevents timeouts) === 3. Set Up SSH Key Authentication (Recommended) === '''On your local machine:''' ==== '''Generate SSH key pair''' (if you don't have one): ==== <pre class="lang-bash"> ssh-keygen -t ed25519 -C "cursor-raspberrypi" === Or use RSA: ssh-keygen -t rsa -b 4096 === </pre>
Summary:
Please note that all contributions to jb-vpn.uk Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Jb-vpn.uk Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Cursor SSH:Setup
(section)
Add topic