managing-ssh

Configure SSH keys, ssh-agent loading, Tailscale VPN access and mosh sessions on macOS/NixOS.

4|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/greenheadHQ/nixos-config --skill managing-ssh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: managing-ssh
Source: https://github.com/greenheadHQ/nixos-config/tree/main/.claude/skills/managing-ssh
Command: npx skills add https://github.com/greenheadHQ/nixos-config --skill managing-ssh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Configure SSH keys, ssh-agent loading, and Tailscale VPN connectivity to centralize remote access setup and troubleshooting across macOS and NixOS.

Core Features & Use Cases

  • SSH key management and ssh-agent integration
  • Tailscale VPN setup and direct access to remote hosts
  • mosh session support for roaming connections
  • sudo authentication handling and SSH_AUTH_SOCK preservation
  • Not for tmux (use managing-tmux). NOT for Atuin (use syncing-atuin).

Quick Start

Configure SSH keys and ssh-agent loading, set up Tailscale access, and verify mosh connectivity for a new host.

Frequently Asked Questions about managing-ssh

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure ssh-agent loading to persist across macOS and NixOS?

To configure persistent ssh-agent loading, use Home Manager or NixOS modules to ensure the agent starts automatically and manages your SSH keys across macOS and NixOS environments.

How do I fix SSH_AUTH_SOCK preservation when running sudo?

Fixing SSH_AUTH_SOCK preservation during sudo requires configuring sudo authentication handling to maintain the environment variable, allowing secure SSH key forwarding when executing commands with elevated privileges.

Can I use Tailscale VPN for direct SSH access to remote NixOS hosts?

Yes, you can use Tailscale VPN to establish direct SSH access to remote NixOS hosts. This setup centralizes remote connectivity and secures access by routing SSH traffic through the Tailscale network.

What is the best way to set up mosh sessions for roaming connections on macOS?

The best way to set up mosh sessions for roaming connections is to configure mosh support alongside your SSH and Tailscale setup, ensuring reliable remote sessions that survive network changes on macOS.

Does this SSH key management approach handle key rotation and login issues?

Yes, this SSH key management approach handles key rotation and login issues by providing idempotent guidance for generating new keys, updating authorized_keys, and troubleshooting sudo-related SSH authentication failures.

When should I not use this SSH and VPN configuration Skill?

You should not use this Skill for managing tmux terminal multiplexers or Atuin shell history syncing, as it specifically focuses on SSH keys, Tailscale VPN, mosh, and sudo workflows.