Skip to content
Back to skills

Remote Mac

ASecurity

Remote Mac management: Tailscale, SSH, tmux, non-interactive commands, service checks.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 10, 2026
ai-agentsshellbashgit

Security analysis

A100/100

Scanned October 10, 2026

npx -y skills add mouadja02/skills --skill remote-mac --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Remote Mac?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Remote Mac
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mouadja02-remote-mac/badge)](https://www.skillsdirectory.com/skills/mouadja02-remote-mac)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: remote-mac
description: "Remote Mac management: Tailscale, SSH, tmux, non-interactive commands, service checks."
source: "https://github.com/steipete/agent-scripts"
attribution: "steipete/agent-scripts by Peter Steinberger"
version: "1.0.0"
platform: macos
---

# Remote Mac

> **Attribution:** Sourced from [steipete/agent-scripts](https://github.com/steipete/agent-scripts) by [Peter Steinberger](https://github.com/steipete).

Use when you need to run or check something on a remote Mac over Tailscale or SSH.

## Discovery

1. Start with `tailscale status` and pick the matching host.
2. If Tailscale is down or SSH times out, try LAN discovery:

```bash
dns-sd -B _ssh._tcp local
arp -a
```

3. Try mDNS names such as `HOST.local` when visible.

## SSH Rules

Use non-interactive SSH by default:

```bash
ssh -o RequestTTY=no -o RemoteCommand=none HOST 'COMMAND'
```

For long-running or interactive remote work, use tmux on the remote host:

```bash
ssh HOST 'tmux new-session -d -s work "long-command"'
ssh HOST 'tmux attach -t work'
```

## Login Shell for PATH

Use login shells on remote Macs so Homebrew and other tools are on PATH:

```bash
ssh -o RequestTTY=no -o RemoteCommand=none HOST 'zsh -lc "command"'
```

## Service Health Check Pattern

```bash
# Check launchd service
ssh HOST 'launchctl list | grep service-name'

# Check process
ssh HOST 'pgrep -af "process-name"'

# Check port listener
ssh HOST 'lsof -nP -iTCP:8080 -sTCP:LISTEN'

# Check tmux sessions
ssh HOST 'tmux list-sessions'
```

## Safety

- Do not assume host identity from a stale IP; verify hostname/user when possible.
- Do not print secrets from remote files or shells.
- If a host is unavailable after Tailscale + LAN fallback, say what was tried.
- Do not install/start/stop services unless explicitly asked.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…