agentleFS
giandemoncell-proggiandemoncell-prog/claude-skills/remote-setup/SKILL.md

remote-setup

Skill0 starsChanged 6 months agoMITView on GitHub

Configure full remote access for a new machine: SSH server, Tailscale VPN, Wake-on-LAN, SSH keys, and helper scripts. Use whenever the user wants to set up remote access, add a new machine to their network, configure SSH, install Tailscale, or enable WoL on another device. Also triggers for "add machine to remote setup", "configure new PC for remote work", "setup SSH on new computer".

  • Pipes a download into a shell
  • Reads credentials
  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. Rhovian/niles★ 4same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always-on device (Raspberry Pi, NAS, old PC) → sends WoL magic packet → wakes target

    line 12
  2. Distinctive:

    If the target is Windows, jump to the Windows section.

    line 25
  3. Very specific:

    Verify: tailscale ip -4 → note the 100.x.x.x address

    line 171
  4. Very specific:

    Check all devices are visible: tailscale status

    line 173
  5. Very specific:

    Add to ~/.ssh/config on the client machine:

    line 179

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Remote Setup Skill

Configure secure remote access for a new machine using the proven stack: Tailscale + OpenSSH + Wake-on-LAN.

Typical topology:

  • Always-on device (Raspberry Pi, NAS, old PC) → sends WoL magic packet → wakes target
  • Client (laptop, Chromebook) → SSH over Tailscale → target machine

Phase 1: Gather Context

Ask the user:

  1. Target machine OS — Windows, Linux (which distro), macOS?
  2. Client machine — where they'll connect from (Chromebook, Linux, Windows, macOS)?
  3. WoL needed? — Is there an always-on device (Pi, NAS, old PC) that can send magic packets?
  4. Tailscale account — same account as existing devices, or a new one?

If the target is Windows, jump to the Windows section. If Linux/macOS, jump to the appropriate section.


Windows Target

Step 1: OpenSSH Server

# Install
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

# Enable + autostart
Set-Service -Name sshd -StartupType Automatic
Start-Service sshd

# Firewall rule (usually auto-created, verify)
Get-NetFirewallRule -Name *ssh*

Verify listening: netstat -an | findstr :22

Step 2: Default shell → PowerShell

New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell `
  -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" `
  -PropertyType String -Force

Step 3: SSH Key Auth

On the client, generate key if needed:

ssh-keygen -t ed25519 -f ~/.ssh/id_<machinename>

On Windows, install the public key:

# For admin users: use administrators_authorized_keys (NOT ~/.ssh/authorized_keys)
$pubkey = Get-Content "$env:USERPROFILE\.ssh\id_ed25519.pub"  # or paste from client
$authKeysPath = "C:\ProgramData\ssh\administrators_authorized_keys"
Add-Content $authKeysPath $pubkey

# Fix permissions (required — SSH ignores keys with wrong ACLs)
icacls $authKeysPath /inheritance:r /grant "SYSTEM:(R)" /grant "Administrators:(R)"

Test: ssh -i ~/.ssh/id_<machinename> Username@<ip>

Step 4: Disable password auth (optional but recommended)

Edit C:\ProgramData\ssh\sshd_config:

PasswordAuthentication no
PubkeyAuthentication yes

Then Restart-Service sshd.

Step 5: WoL BIOS/Windows config

BIOS (UEFI):

  • ErP Ready → Disabled
  • Power On By PCI-E → Enabled
  • Save & exit

Windows (Device Manager):

  • Find the NIC (e.g., Intel I219-V)
  • Properties → Power Management: enable "Allow this device to wake the computer"
  • Properties → Advanced: enable "Wake on Magic Packet"

Windows Fast Startup — must be disabled for WoL to work:

# Disable via registry
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power" `
  -Name HiberbootEnabled -Value 0

Get MAC address for WoL:

Get-NetAdapter | Select-Object Name, MacAddress, Status

Linux Target

OpenSSH Server

# Debian/Ubuntu
sudo apt install openssh-server
sudo systemctl enable --now ssh

# Arch
sudo pacman -S openssh
sudo systemctl enable --now sshd

SSH Key Auth

mkdir -p ~/.ssh && chmod 700 ~/.ssh
echo "ssh-ed25519 AAAA... user@client" >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys

WoL on Linux (as wake-sender, e.g. Raspberry Pi)

sudo apt install wakeonlan ethtool

# Test WoL capability of NIC
sudo ethtool eth0 | grep Wake

# Enable WoL at boot (systemd service)
sudo tee /etc/systemd/system/wol.service <<EOF
[Unit]
Description=Enable Wake-on-LAN
After=network.target

[Service]
Type=oneshot
ExecStart=/sbin/ethtool -s eth0 wol g
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl enable --now wol.service

Wake script:

# ~/wake-<machinename>.sh
#!/bin/bash
wakeonlan AA:BB:CC:DD:EE:FF

Tailscale Setup (all platforms)

  1. Install from tailscale.com (one command on Linux: curl -fsSL https://tailscale.com/install.sh | sh)
  2. sudo tailscale up → opens browser for auth → log in with your Tailscale account
  3. Verify: tailscale ip -4 → note the 100.x.x.x address

Check all devices are visible: tailscale status


SSH Config on Client

Add to ~/.ssh/config on the client machine:

Host <alias>
    HostName 100.x.x.x        # Tailscale IP of target
    User <username>
    IdentityFile ~/.ssh/id_<machinename>
    ServerAliveInterval 60

Test: ssh <alias>


Checklist Before Declaring Done

  • SSH service running and autostarts on target
  • Firewall allows port 22
  • Key auth works (no password prompt)
  • Tailscale connected on both client and target, same account
  • ssh <alias> works from client
  • WoL: BIOS configured, magic packet enabled on NIC, Fast Startup disabled
  • MAC address noted for wake scripts
  • ~/wake-<machinename>.sh script tested end-to-end
  • ~/.ssh/config entry added on client
  • Reference guide saved locally with IPs, MAC, key paths, and quirks

Save a Guide

At the end, save a machine-specific reference file (e.g., <machinename>_remote_setup.md) with:

  • Tailscale IP
  • MAC address
  • SSH alias and key path
  • Wake script location
  • Any quirks encountered during setup

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.