Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
artwist-polyakov avatar

Ssh Remote Connection

  • 285 installs
  • 177 repo stars
  • Updated May 10, 2026
  • artwist-polyakov/polyakov-claude-skills

ssh-remote-connection is a Claude skill that connects to remote servers over SSH to run commands, read logs, restart services, and manage Docker containers.

About

This skill opens an SSH connection to a remote server so commands can run there, whether an interactive shell or a single command. A developer uses it to check logs, restart services, or manage Docker containers on a server. Connection details and credentials come from a config .env supporting key or password authentication.

  • Connects to a remote server over SSH to run commands, check logs, and manage services
  • Supports both key-based and password-based authentication via a config .env
  • Documents Docker Compose operations like viewing logs and restarting a service

Ssh Remote Connection by the numbers

  • 285 all-time installs (skills.sh)
  • Ranked #343 of 1,435 DevOps & CI/CD skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

ssh-remote-connection capabilities & compatibility

Free; needs SSH credentials for the target server and sshpass or expect for password auth.

Capabilities
devops
Works with
docker
Use cases
devops
Pricing
Free
From the docs

What ssh-remote-connection says it does

Universal skill for connecting to remote servers via SSH.
SKILL.md
Use when you need to execute commands on a remote server, check logs, restart services, or manage Docker containers.
SKILL.md
npx skills add https://github.com/artwist-polyakov/polyakov-claude-skills --skill ssh-remote-connection

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs285
repo stars177
Last updatedMay 10, 2026
Repositoryartwist-polyakov/polyakov-claude-skills

What it does

Run commands, read logs, restart services, or manage Docker containers on a remote server over SSH.

Who is it for?

Running one-off commands and service operations on a remote server over SSH.

Skip if: Running git pull on the server; the user handles git sync manually.

When should I use this skill?

You need to execute commands on a remote server, check logs, restart services, or manage Docker containers.

What you get

Commands run on the remote server and their output is returned to the agent.

  • remote command output
  • docker service status

By the numbers

  • supports 3 auth modes: auto, key, and password

Files

SKILL.mdMarkdownGitHub ↗

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_METHODauto, 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"

Related skills

How it compares

Use ssh-remote-connection for quick agent-driven SSH maintenance; use full CI/CD pipelines when changes need audited, repeatable deploy workflows.

FAQ

How do you configure ssh-remote-connection?

ssh-remote-connection reads SSH_HOST, SSH_USER, SSH_KEY_PATH, optional SSH_KEY_PASSWORD, and SERVER_PROJECT_PATH from environment variables or config/.env. Copy the example .env, set the key path, and make the wrapper script executable before use.

What can ssh-remote-connection do on servers?

ssh-remote-connection executes remote bash commands, tails Docker and service logs, restarts Docker Compose services, and runs status checks. It uses SSH agent forwarding (-A) but intentionally does not perform git operations on the remote host.

How is ssh-remote-connection installed?

ssh-remote-connection installs from the artwist-polyakov polyakov-claude-skills marketplace with `/plugin marketplace add artwist-polyakov/polyakov-claude-skills` followed by `/plugin install ssh-remote-connection`, or via `npx skills add` with the --skill flag.

DevOps & CI/CDinfradeploy

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.