Skip to content

Run commands and manage Docker services on a remote server over SSH with key or password authentication.

CCM score
56 of 100
skills.sh installs
362
GitHub stars
240
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers running one-off commands or an interactive shell through scripts/connect.sh on a configured remote host
  • Includes configuration templates for key-based and password-based SSH auth, plus cloud runtime environment variables
  • Enforces git rules: no git pull on the server, with code changes pushed first and synced by the user
  • Designed for checking logs, restarting services, and running docker compose commands on a project server

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Details

Repository
github.com/artwist-polyakov/polyakov-claude-skills
Categories
DevOps & Cloud, CLI & Terminal
First seen
Jun 3, 2026

Questions

What does the ssh-remote-connection skill do?

It connects an agent to a remote server over SSH so it can run commands there, check logs, restart services, or manage Docker containers. Commands can be run directly through scripts/connect.sh or in an interactive shell. It is listed in the DevOps & Cloud category.

How do I install the ssh-remote-connection skill?

Run npx -y skills add artwist-polyakov/polyakov-claude-skills --skill ssh-remote-connection -y in your project. After that the agent can use it to reach your server.

What do I need to set up before using ssh-remote-connection?

You copy config/.env.example to config/.env and fill in the host, user, and either a key path or a password. Set SERVER_PROJECT_PATH to the project directory on the server. Password authentication needs sshpass or expect on the local machine, and the host key must be trusted first.

Does ssh-remote-connection pull Git changes on the server?

No, the skill says not to run git pull on the server, since the user handles git sync manually. It also tells the agent to use docker compose rather than docker-compose on the server.

Similar to Ssh Remote Connection

More DevOps & Cloud