connecting-laptop

Connecting from Your Laptop (Windows)

What you need


SSH

1. Generate an SSH key

Open Windows Terminal and run:

ssh-keygen -t ed25519 -C "laptop"

Press Enter for all prompts. Your keys are saved to:

C:\Users\<you>\.ssh\id_ed25519      (private key — keep secret)
C:\Users\<you>\.ssh\id_ed25519.pub  (public key — this goes on cube)

2. Add your public key to cube

Paste the contents of id_ed25519.pub onto a new line in:

/home/alex/.ssh/authorized_keys

You can do this from inside cube’s tmux session:

cat >> ~/.ssh/authorized_keys
# paste the key, then press Ctrl-D

3. Create an SSH config file

Create or edit C:\Users\<you>\.ssh\config:

Host cube
  Hostname minecraft.locklin.science
  Port 25560
  User alex
  IdentityFile ~/.ssh/id_ed25519
  ServerAliveInterval 60
  ServerAliveCountMax 3

4. Connect

ssh cube

You will land in tmux automatically.


VS Code — editing files remotely

  1. Install the Remote - SSH extension in VS Code
  2. Press Ctrl+Shift+PRemote-SSH: Connect to Host → select cube
  3. VS Code connects and lets you browse and edit files as if they were local

Samba file share (Windows Explorer)

The ~/share folder is shared over Samba, accessible only when your laptop is on the Tailscale network.

  1. Install and connect Tailscale on your laptop

  2. In Windows Explorer address bar, type:

    \\cube.alex.net.locklin.science\share

    Or press Win+R and enter the path above.

The share lets you drag files in and out without SCP or the terminal.