ssh-connect
/ssh-connect
Use when you need to SSH into a remote machine to run commands or open an interactive shell using credentials loaded from a .env file (SSH_HOST, SSH_USER, and key or password), avoiding interactive password prompts.
- Author
- EricGrill ↗
- Repository
- agents-skills-plugins ↗
- Licence
- MIT
- Last repository change
- 21.06.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 21.06.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: ssh_connect.py
What it does and when to use it
Use when you need to SSH into a remote machine to run commands or open an interactive shell using credentials loaded from a .env file (SSH_HOST, SSH_USER, and key or password), avoiding interactive password prompts.
Original author description
Use when you need to SSH into a remote machine to run commands or open an interactive shell using credentials loaded from a .env file (SSH_HOST, SSH_USER, and key or password), avoiding interactive password prompts.
How it works
- Setup
- Usage
- Environment Variables
- Security Notes
SKILL.md preview
---
name: ssh-connect
description: Use when you need to SSH into a remote machine to run commands or open an interactive shell using credentials loaded from a .env file (SSH_HOST, SSH_USER, and key or password), avoiding interactive password prompts.
---
# SSH Connect Skill
SSH into remote machines using credentials from `.env` file - no password prompts.
## Setup
1. Create `.env` file in project root with your SSH credentials:
```bash
# Required
SSH_HOST=192.168.1.100
SSH_USER=ubuntu
# Authentication (choose one)
SSH_KEY_PATH=~/.ssh/id_rsa # Recommended: path to private key
SSH_PASSWORD=your_password # Alternative: password auth
```
2. Ensure Python dependencies are installed:
```bash
pip install paramiko python-dotenv
```
## Usage
### CLI
```bash
# Interactive shell
python .claude/skills/ssh-connect/ssh_connect.py
# Run single command
python .claude/skills/ssh-connect/ssh_connect.py "ls -la"
# Run multiple commands
python .claude/skills/ssh-connect/ssh_connect.py "cd /app && git pull && docker-compose restart"
```
### Python API
```python
from ssh_connect import SSHClient
# Auto-loads from .env
with SSHClient() as ssh:
output = ssh.run("hostname")
print(output)
# Or specify credentials directly
with SSHClient(host="192.168.1.100", user="ubuntu", key_path="~/.ssh/id_rsa") as ssh:
output = ssh.run("uptime")
```
## Environment Variables
| Variable | Required | Description |
|----------|----------|-------------|
| `SSH_HOST` | Yes | Remote hostname or IP |
| `SSH_USER` | Yes | SSH username |
| `SSH_PORT` | No | SSH port (default: 22) |
| `SSH_KEY_PATH` | No* | Path to SSH private key |
| `SSH_PASSWORD` | No* | SSH password |
*One of `SSH_KEY_PATH` or `SSH_PASSWORD` is required.
## Security Notes
- **Prefer SSH keys** over passwords when possible
- Add `.env` to `.gitignore` to prevent credential leaks
- Never commit credentials to version control
Files in this package (2)
- SKILL.md 2 KB
- ssh_connect.py 6 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · EricGrill/agents-skills-plugins | 100 | MIT |
| wangjs-jacky/jacky-skills | 100 | MIT |
Database snapshot: 13.11.2026 · package version bee04dd217b8 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90connect-ssh
Use when the owner gives you a server (address, user, password or key) and wants you to connect to it and work on it. - 98windows-vm
Create, manage, or connect to a headless Windows 11 VM running in Docker with SSH access. Use when the user wants to spin up, stop, restart, or SSH into a Windows VM. - 100ssh-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. - 100setup-ssh-keys
Set up key-based SSH access from this machine to the user's VPS so every other hstack skill can run unattended. Use when any skill aborts with "SSH to $VPS_USER@$VPS_IP failed", or before the first deploy. Handles the container-vs-host trap, the merged-key corruption, and the… - 84connect
Write the <id>.rzv SSH alias for a Runzivo sandbox and show the SSH and editor commands. Use when the user wants to connect to, SSH into or open a Runzivo sandbox in an editor. - 100sshhh
通过用户预先授权的凭据访问 SSH 服务器。当需要连接、登录或操作远程 Linux 主机时使用,包括执行命令、查看日志、检查服务状态、部署、上传下载文件。密码由脚本在独立控制台窗口中向用户索取,agent 全程接触不到明文密码。首次使用会自动引导配置,脚本通过标准状态码告知 agent 应当重试、等待还是转告用户。