Skip to content
Productivity
Skill

/ssh-remote-connection

SSH connection to remote servers. Use when you need to execute commands on a remote server, check logs, restart services, or manage Docker containers.

From plugin
polyakov-claude-skills
23623 skills1 command

Claude Code

$ npx -y skills add artwist-polyakov/polyakov-claude-skills --skill ssh-remote-connection --agent claude-code

SKILL.md

ssh-remote-connection.SKILL.md
name: ssh-remote-connection
description: SSH connection to remote servers. Use when you need to execute commands on a remote server, check logs, restart services, or manage Docker containers.

SSH Remote Connection

Universal skill for connecting to remote servers via SSH.

Usage

# Interactive shell
scripts/connect.sh

# Run command directly
scripts/connect.sh "docker compose logs backend --tail 50"

Setup

For Claude Code (local)

1. Copy config template:

   cp config/.env.example config/.env

2. Fill in `config/.env` with actual values

Key-based authentication:

   SSH_HOST=your-server.example.com
   SSH_USER=ubuntu
   SSH_AUTH_METHOD=key
   SSH_KEY_PATH=/absolute/path/to/private/key
   SSH_KEY_PASSWORD=
   SERVER_PROJECT_PATH=/path/to/project

Password-based authentication:

   SSH_HOST=your-server.example.com
   SSH_USER=ubuntu
   SSH_AUTH_METHOD=password
   SSH_PASSWORD='your account password'
   SERVER_PROJECT_PATH=/path/to/project

3. Make script executable:

   chmod +x scripts/connect.sh

For Cloud Runtime

Set environment variables in your cloud configuration:

  • `SSH_HOST` — server hostname or IP
  • `SSH_USER` — SSH username
  • `SSH_PORT` — SSH port (optional)
  • `SSH_AUTH_METHOD` — `auto`, `key`, or `password` (optional, defaults to `auto`)
  • `SSH_KEY_PATH` — path to private key for key authentication
  • `SSH_KEY_PASSWORD` — key passphrase (optional)
  • `SSH_PASSWORD` — SSH account password for password authentication
  • `SERVER_PROJECT_PATH` — project directory on server

For password authentication, the local runtime must have either `sshpass` or `expect`. If the host key is not trusted yet, connect once manually or add the host to `known_hosts` before running non-interactive commands.

Important Notes

  • **Git operations**: Do NOT run `git pull` on the server. User will handle git sync manually.
  • **Code location**: Code is in a private repo, changes must be pushed first then pulled by user.
  • **Docker**: Use `docker compose` (not `docker-compose`) on the server.

Example Commands

# View logs
scripts/connect.sh "docker compose logs backend --tail 100"

# Restart service
scripts/connect.sh "docker compose restart backend"

# Rebuild and restart
scripts/connect.sh "docker compose build backend && docker compose up -d backend"

# Check status
scripts/connect.sh "docker compose ps"
Read more
@artwist-polyakov
Ships withpolyakov-claude-skills

Набор скиллов для Claude Code.

Stars on GitHub

Momentum

stars in total
236
Star history of artwist-polyakov/polyakov-claude-skills on GitHub, a chart by star-history.com

Other skills on polyakov-claude-skills.

agent-deck

agent-deck

Управление сессиями AI агентов через agent-deck CLI. Триггеры (RU): "запусти агента", "запусти саб-агента", "создай сессию",…

blogger-ads-skill

blogger-ads-skill

Сопровождает рекламную сделку в Telegram на стороне блогера, рекламодателя или агентства: условия, отдельные DOCX договора и…

crawl4ai-seo

crawl4ai-seo

SEO-краулер сайтов на базе Crawl4AI. Полный аудит страниц: title, meta, H1, canonical, breadcrumbs, навигация, внутренние ссылки.…

More skills from other plugins.

i-have-adhd

i-have-adhd

Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…

@ayghri@ayghriInstall Skill
ab-test-analysis

ab-test-analysis

Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop…

pm-skills11d28k
@phuryn@phurynInstall Skill
distilly

distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…

Questions about ssh-remote-connection.

Which coding agents can use ssh-remote-connection?
ssh-remote-connection installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.