[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6PZ5M8K423WEAC4AEW6M6EY":3,"skill-same:01M6PZ5M8K423WEAC4AEW6M6EY":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":27,"commitSha":52,"skillDirectory":53,"forksCount":13,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":56,"install":57,"resources":70},"01M6PZ5M8K423WEAC4AEW6M6EY","ssh-configuration",null,"Configure SSH servers and clients securely. Manage keys, tunnels, and config files. Use when setting up secure remote access.","duc-duy-1612\u002FOnline-Delivery-Systems-Web","duc-duy-1612","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F192231384?v=4","01M6NSDKQQDKVTHZ8DZMZ1VYY6","01M6NSDKW8DDVTQHBT1HBDDJPT",0,"MIT","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fssh-configuration\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"ssh configuration","ssh","configuration","manage","remote","relevant","helper","critical","platform","main","community","license","files","agent-skills","up","only","use","configure","access","devops-security","2026-11-10 10:12:30",false,"---\nname: ssh-configuration\ndescription: Configure SSH servers and clients securely. Manage keys, tunnels, and\n  config files. Use when setting up secure remote access.\ncategory: devops\nrisk: critical\nsource: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\nsource_repo: BagelHole\u002FDevOps-Security-Agent-Skills\nsource_type: community\ndate_added: '2026-09-20'\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE\ncompatibility: Requires the relevant OS\u002Fplatform tooling and privileged access where\n  noted. Docs-only; helper scripts and templates not bundled.\nmetadata:\n  author: devops-skills\n  version: '1.0'\n---\n\n# SSH Configuration\n\nSecure SSH server and client configuration for production environments, including key management, hardened sshd settings, bastion host architecture, tunneling, and multiplexing.\n\n## When to Use\n\n- Setting up secure remote access to Linux or Unix servers\n- Hardening SSH daemon configuration to meet compliance requirements\n- Configuring bastion \u002F jump hosts for private network access\n- Creating SSH tunnels for secure port forwarding\n- Managing SSH keys for teams or automated deployments\n- Troubleshooting connection, authentication, or performance issues\n\n## Prerequisites\n\n- OpenSSH client installed locally (`ssh -V` to verify)\n- OpenSSH server installed on target (`sshd`)\n- Root or sudo access on the server for sshd_config changes\n- Firewall rules allowing TCP port 22 (or custom SSH port)\n\n## Key Generation and Management\n\n```bash\n# Generate an Ed25519 key (recommended -- fast, secure, short)\nssh-keygen -t ed25519 -C \"jane@example.com\" -f ~\u002F.ssh\u002Fid_ed25519\n\n# Generate an RSA 4096-bit key (for legacy compatibility)\nssh-keygen -t rsa -b 4096 -C \"jane@example.com\" -f ~\u002F.ssh\u002Fid_rsa_legacy\n\n# Generate a key with a custom comment and no passphrase (CI\u002FCD use only)\nssh-keygen -t ed25519 -C \"ci-deploy-key\" -f ~\u002F.ssh\u002Fci_deploy -N \"\"\n\n# Copy public key to a remote server\nssh-copy-id -i ~\u002F.ssh\u002Fid_ed25519.pub user@server\n\n# Manually append a public key (when ssh-copy-id is unavailable)\ncat ~\u002F.ssh\u002Fid_ed25519.pub | ssh user@server \"mkdir -p ~\u002F.ssh && chmod 700 ~\u002F.ssh && cat >> ~\u002F.ssh\u002Fauthorized_keys && chmod 600 ~\u002F.ssh\u002Fauthorized_keys\"\n\n# List fingerprints of keys on the agent\nssh-add -l\n\n# Start the SSH agent and add a key\neval \"$(ssh-agent -s)\"\nssh-add ~\u002F.ssh\u002Fid_ed25519\n\n# Add a key with a lifetime (auto-removed after 8 hours)\nssh-add -t 28800 ~\u002F.ssh\u002Fid_ed25519\n\n# Remove all keys from the agent\nssh-add -D\n\n# Convert an OpenSSH key to PEM format (for tools that need it)\nssh-keygen -p -m PEM -f ~\u002F.ssh\u002Fid_rsa_legacy\n\n# Show the public key fingerprint (SHA256)\nssh-keygen -lf ~\u002F.ssh\u002Fid_ed25519.pub\n\n# Rotate a key: generate new, deploy, then revoke old\nssh-keygen -t ed25519 -f ~\u002F.ssh\u002Fid_ed25519_new -C \"jane@example.com rotated $(date +%Y-%m)\"\nssh-copy-id -i ~\u002F.ssh\u002Fid_ed25519_new.pub user@server\n# After verifying the new key works, remove the old public key from authorized_keys on the server\n```\n\n## SSH Client Configuration (~\u002F.ssh\u002Fconfig)\n\n```text\n# Global defaults applied to all hosts\nHost *\n  AddKeysToAgent yes\n  IdentitiesOnly yes\n  ServerAliveInterval 60\n  ServerAliveCountMax 3\n  TCPKeepAlive yes\n  Compression yes\n\n# Production servers via bastion\nHost bastion\n  HostName bastion.example.com\n  User ops\n  IdentityFile ~\u002F.ssh\u002Fid_ed25519\n  Port 22\n\nHost prod-web-*\n  User deploy\n  IdentityFile ~\u002F.ssh\u002Fid_ed25519\n  ProxyJump bastion\n  Port 22\n\nHost prod-web-1\n  HostName 10.0.1.10\n\nHost prod-web-2\n  HostName 10.0.1.11\n\n# Staging accessed directly\nHost staging\n  HostName staging.example.com\n  User deploy\n  IdentityFile ~\u002F.ssh\u002Fid_ed25519_staging\n\n# Database tunnel through bastion\nHost db-tunnel\n  HostName 10.0.2.50\n  User dba\n  ProxyJump bastion\n  LocalForward 5432 localhost:5432\n\n# GitHub deploy key\nHost github-deploy\n  HostName github.com\n  User git\n  IdentityFile ~\u002F.ssh\u002Fgithub_deploy_key\n  IdentitiesOnly yes\n\n# Connection multiplexing for faster repeated connections\nHost fast-*\n  ControlMaster auto\n  ControlPath ~\u002F.ssh\u002Fsockets\u002F%r@%h-%p\n  ControlPersist 600\n```\n\n```bash\n# Create the sockets directory for multiplexing\nmkdir -p ~\u002F.ssh\u002Fsockets\nchmod 700 ~\u002F.ssh\u002Fsockets\n```\n\n## Hardened Server Configuration (\u002Fetc\u002Fssh\u002Fsshd_config)\n\n```bash\n# \u002Fetc\u002Fssh\u002Fsshd_config -- hardened configuration\n# -----------------------------------------------\n\n# Listen on a non-default port (obscurity, not security -- combine with firewall)\nPort 22\n\n# Protocol and key exchange\nProtocol 2\nKexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group16-sha512\nCiphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com\nMACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com\n\n# Authentication\nPermitRootLogin no\nPasswordAuthentication no\nPubkeyAuthentication yes\nAuthenticationMethods publickey\nMaxAuthTries 3\nMaxSessions 5\nLoginGraceTime 30\n\n# Restrict users and groups\nAllowGroups ssh-users ops-team\n# AllowUsers deploy admin\n\n# Disable unused authentication methods\nChallengeResponseAuthentication no\nKerberosAuthentication no\nGSSAPIAuthentication no\n\n# Forwarding controls\nAllowTcpForwarding yes\nAllowAgentForwarding no\nX11Forwarding no\nPermitTunnel no\n\n# Security hardening\nClientAliveInterval 300\nClientAliveCountMax 2\nUsePAM yes\nUseDNS no\nPermitEmptyPasswords no\nPermitUserEnvironment no\n\n# Logging\nSyslogFacility AUTH\nLogLevel VERBOSE\n\n# SFTP subsystem\nSubsystem sftp \u002Fusr\u002Flib\u002Fopenssh\u002Fsftp-server -f AUTH -l INFO\n\n# Match block: restrict deploy user to SFTP only\nMatch User sftponly\n  ForceCommand internal-sftp\n  ChrootDirectory \u002Fhome\u002F%u\n  AllowTcpForwarding no\n  AllowAgentForwarding no\n  X11Forwarding no\n```\n\n```bash\n# Validate configuration before restarting\nsshd -t\n\n# Restart sshd to apply changes\nsystemctl restart sshd\n\n# Always keep an existing session open while testing\n# Open a NEW terminal to verify you can still connect before closing the old one\n```\n\n## Bastion Host Setup\n\n```bash\n# On the bastion server, restrict forwarding to internal subnets only\n# \u002Fetc\u002Fssh\u002Fsshd_config addition on bastion:\nAllowTcpForwarding yes\nPermitOpen 10.0.0.0\u002F8:22 10.0.0.0\u002F8:5432\n\n# Disable shell access for jump-only users\nMatch User jump-user\n  PermitTTY no\n  ForceCommand \u002Fusr\u002Fsbin\u002Fnologin\n  AllowTcpForwarding yes\n\n# Connect through the bastion from a client in one command\nssh -J ops@bastion.example.com deploy@10.0.1.10\n\n# Equivalent using ProxyCommand (older SSH versions)\nssh -o ProxyCommand=\"ssh -W %h:%p ops@bastion.example.com\" deploy@10.0.1.10\n\n# Multi-hop: client -> bastion -> app-server -> db-server\nssh -J ops@bastion,deploy@10.0.1.10 dba@10.0.2.50\n```\n\n## SSH Tunneling\n\n```bash\n# Local port forward: access remote service on localhost\n# Access remote PostgreSQL (10.0.2.50:5432) via bastion at localhost:5432\nssh -L 5432:10.0.2.50:5432 ops@bastion.example.com -N\n\n# Remote port forward: expose local service to the remote network\n# Make local dev server (localhost:3000) available on server port 8080\nssh -R 8080:localhost:3000 user@server -N\n\n# Dynamic SOCKS proxy: route all traffic through the server\nssh -D 1080 user@server -N\n# Then configure browser or apps to use SOCKS5 proxy at localhost:1080\n\n# Tunnel with a background process\nssh -fN -L 5432:10.0.2.50:5432 ops@bastion.example.com\n# Find and kill the tunnel later\nps aux | grep \"ssh -fN\" | grep -v grep\nkill \u003Cpid>\n\n# Autossh for persistent tunnels (auto-reconnects)\nautossh -M 0 -f -N -L 5432:10.0.2.50:5432 ops@bastion.example.com \\\n  -o \"ServerAliveInterval=30\" -o \"ServerAliveCountMax=3\"\n```\n\n## Agent Forwarding (Use with Caution)\n\n```bash\n# Enable agent forwarding for a single connection\nssh -A user@bastion\n\n# From the bastion, your local keys are available to authenticate further\nssh deploy@10.0.1.10   # Uses your local key via the agent\n\n# SECURITY WARNING: Agent forwarding exposes your keys to anyone with root\n# on the intermediate host. Prefer ProxyJump instead.\n\n# Safer alternative: ProxyJump does not expose the agent\nssh -J ops@bastion deploy@10.0.1.10\n```\n\n## SSH Key Restrictions in authorized_keys\n\n```text\n# Restrict a key to a specific command only (backup key)\ncommand=\"\u002Fusr\u002Flocal\u002Fbin\u002Frun-backup.sh\",no-port-forwarding,no-X11-forwarding,no-agent-forwarding ssh-ed25519 AAAA... backup@example.com\n\n# Restrict a key to specific source IPs\nfrom=\"10.0.0.0\u002F24,192.168.1.0\u002F24\" ssh-ed25519 AAAA... admin@example.com\n\n# Read-only SFTP key with chroot\ncommand=\"internal-sftp\",no-port-forwarding,no-pty ssh-ed25519 AAAA... sftp-upload@example.com\n```\n\n## Troubleshooting\n\n| Symptom | Diagnostic Command | Common Fix |\n|---|---|---|\n| Connection refused | `ss -tlnp \\| grep 22` on server | Ensure sshd is running; check firewall rules |\n| Permission denied (publickey) | `ssh -vvv user@server` | Verify key is in authorized_keys, permissions 600\u002F700 |\n| Host key verification failed | `ssh-keygen -R server` | Remove stale host key; verify server identity |\n| Connection timeout | `ssh -o ConnectTimeout=5 user@server` | Check network path, security groups, NACLs |\n| Slow SSH login | Check `UseDNS` in sshd_config | Set `UseDNS no`; check reverse DNS |\n| Broken pipe \u002F dropped sessions | Add `ServerAliveInterval 60` to config | Configure keepalive on both client and server |\n| Agent forwarding not working | `ssh-add -l` on bastion | Ensure `-A` flag used and agent has keys loaded |\n| Tunnel port already in use | `ss -tlnp \\| grep \u003Cport>` | Kill existing tunnel or use a different local port |\n\n## Related Skills\n\n- `linux-administration` -- General Linux system administration\n- `user-management` -- Managing the users who connect via SSH\n- `systemd-services` -- Managing sshd as a systemd service\n- `performance-tuning` -- Network tuning for SSH performance\n\n## Limitations\n\n- Infrastructure commands can disrupt services: confirm target host\u002Fscope and have backups\u002Fsnapshots before mutating state.\n- Docs-only import: upstream scripts and templates not bundled.\n\n","# SSH Configuration\n\nSecure SSH server and client configuration for production environments, including key management, hardened sshd settings, bastion host architecture, tunneling, and multiplexing.\n\n## When to Use\n\n- Setting up secure remote access to Linux or Unix servers\n- Hardening SSH daemon configuration to meet compliance requirements\n- Configuring bastion \u002F jump hosts for private network access\n- Creating SSH tunnels for secure port forwarding\n- Managing SSH keys for teams or automated deployments\n- Troubleshooting connection, authentication, or performance issues\n\n## Prerequisites\n\n- OpenSSH client installed locally (`ssh -V` to verify)\n- OpenSSH server installed on target (`sshd`)\n- Root or sudo access on the server for sshd_config changes\n- Firewall rules allowing TCP port 22 (or custom SSH port)\n\n## Key Generation and Management\n\n```bash\n# Generate an Ed25519 key (recommended -- fast, secure, short)\nssh-keygen -t ed25519 -C \"jane@example.com\" -f ~\u002F.ssh\u002Fid_ed25519\n\n# Generate an RSA 4096-bit key (for legacy compatibility)\nssh-keygen -t rsa -b 4096 -C \"jane@example.com\" -f ~\u002F.ssh\u002Fid_rsa_legacy\n\n# Generate a key with a custom comment and no passphrase (CI\u002FCD use only)\nssh-keygen -t ed25519 -C \"ci-deploy-key\" -f ~\u002F.ssh\u002Fci_deploy -N \"\"\n\n# Copy public key to a remote server\nssh-copy-id -i ~\u002F.ssh\u002Fid_ed25519.pub user@server\n\n# Manually append a public key (when ssh-copy-id is unavailable)\ncat ~\u002F.ssh\u002Fid_ed25519.pub | ssh user@server \"mkdir -p ~\u002F.ssh && chmod 700 ~\u002F.ssh && cat >> ~\u002F.ssh\u002Fauthorized_keys && chmod 600 ~\u002F.ssh\u002Fauthorized_keys\"\n\n# List fingerprints of keys on the agent\nssh-add -l\n\n# Start the SSH agent and add a key\neval \"$(ssh-agent -s)\"\nssh-add ~\u002F.ssh\u002Fid_ed25519\n\n# Add a key with a lifetime (auto-removed after 8 hours)\nssh-add -t 28800 ~\u002F.ssh\u002Fid_ed25519\n\n# Remove all keys from the agent\nssh-add -D\n\n# Convert an OpenSSH key to PEM format (for tools that need it)\nssh-keygen -p -m PEM -f ~\u002F.ssh\u002Fid_rsa_legacy\n\n# Show the public key fingerprint (SHA256)\nssh-keygen -lf ~\u002F.ssh\u002Fid_ed25519.pub\n\n# Rotate a key: generate new, deploy, then revoke old\nssh-keygen -t ed25519 -f ~\u002F.ssh\u002Fid_ed25519_new -C \"jane@example.com rotated $(date +%Y-%m)\"\nssh-copy-id -i ~\u002F.ssh\u002Fid_ed25519_new.pub user@server\n# After verifying the new key works, remove the old public key from authorized_keys on the server\n```\n\n## SSH Client Configuration (~\u002F.ssh\u002Fconfig)\n\n```text\n# Global defaults applied to all hosts\nHost *\n  AddKeysToAgent yes\n  IdentitiesOnly yes\n  ServerAliveInterval 60\n  ServerAliveCountMax 3\n  TCPKeepAlive yes\n  Compression yes\n\n# Production servers via bastion\nHost bastion\n  HostName bastion.example.com\n  User ops\n  IdentityFile ~\u002F.ssh\u002Fid_ed25519\n  Port 22\n\nHost prod-web-*\n  User deploy\n  IdentityFile ~\u002F.ssh\u002Fid_ed25519\n  ProxyJump bastion\n  Port 22\n\nHost prod-web-1\n  HostName 10.0.1.10\n\nHost prod-web-2\n  HostName 10.0.1.11\n\n# Staging accessed directly\nHost staging\n  HostName staging.example.com\n  User deploy\n  IdentityFile ~\u002F.ssh\u002Fid_ed25519_staging\n\n# Database tunnel through bastion\nHost db-tunnel\n  HostName 10.0.2.50\n  User dba\n  ProxyJump bastion\n  LocalForward 5432 localhost:5432\n\n# GitHub deploy key\nHost github-deploy\n  HostName github.com\n  User git\n  IdentityFile ~\u002F.ssh\u002Fgithub_deploy_key\n  IdentitiesOnly yes\n\n# Connection multiplexing for faster repeated connections\nHost fast-*\n  ControlMaster auto\n  ControlPath ~\u002F.ssh\u002Fsockets\u002F%r@%h-%p\n  ControlPersist 600\n```\n\n```bash\n# Create the sockets directory for multiplexing\nmkdir -p ~\u002F.ssh\u002Fsockets\nchmod 700 ~\u002F.ssh\u002Fsockets\n```\n\n## Hardened Server Configuration (\u002Fetc\u002Fssh\u002Fsshd_config)\n\n```bash\n# \u002Fetc\u002Fssh\u002Fsshd_config -- hardened configuration\n# -----------------------------------------------\n\n# Listen on a non-default port (obscurity, not security -- combine with firewall)\nPort 22\n\n# Protocol and key exchange\nProtocol 2\nKexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group16-sha512\nCiphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com\nMACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com\n\n# Authentication\nPermitRootLogin no\nPasswordAuthentication no\nPubkeyAuthentication yes\nAuthenticationMethods publickey\nMaxAuthTries 3\nMaxSessions 5\nLoginGraceTime 30\n\n# Restrict users and groups\nAllowGroups ssh-users ops-team\n# AllowUsers deploy admin\n\n# Disable unused authentication methods\nChallengeResponseAuthentication no\nKerberosAuthentication no\nGSSAPIAuthentication no\n\n# Forwarding controls\nAllowTcpForwarding yes\nAllowAgentForwarding no\nX11Forwarding no\nPermitTunnel no\n\n# Security hardening\nClientAliveInterval 300\nClientAliveCountMax 2\nUsePAM yes\nUseDNS no\nPermitEmptyPasswords no\nPermitUserEnvironment no\n\n# Logging\nSyslogFacility AUTH\nLogLevel VERBOSE\n\n# SFTP subsystem\nSubsystem sftp \u002Fusr\u002Flib\u002Fopenssh\u002Fsftp-server -f AUTH -l INFO\n\n# Match block: restrict deploy user to SFTP only\nMatch User sftponly\n  ForceCommand internal-sftp\n  ChrootDirectory \u002Fhome\u002F%u\n  AllowTcpForwarding no\n  AllowAgentForwarding no\n  X11Forwarding no\n```\n\n```bash\n# Validate configuration before restarting\nsshd -t\n\n# Restart sshd to apply changes\nsystemctl restart sshd\n\n# Always keep an existing session open while testing\n# Open a NEW terminal to verify you can still connect before closing the old one\n```\n\n## Bastion Host Setup\n\n```bash\n# On the bastion server, restrict forwarding to internal subnets only\n# \u002Fetc\u002Fssh\u002Fsshd_config addition on bastion:\nAllowTcpForwarding yes\nPermitOpen 10.0.0.0\u002F8:22 10.0.0.0\u002F8:5432\n\n# Disable shell access for jump-only users\nMatch User jump-user\n  PermitTTY no\n  ForceCommand \u002Fusr\u002Fsbin\u002Fnologin\n  AllowTcpForwarding yes\n\n# Connect through the bastion from a client in one command\nssh -J ops@bastion.example.com deploy@10.0.1.10\n\n# Equivalent using ProxyCommand (older SSH versions)\nssh -o ProxyCommand=\"ssh -W %h:%p ops@bastion.example.com\" deploy@10.0.1.10\n\n# Multi-hop: client -> bastion -> app-server -> db-server\nssh -J ops@bastion,deploy@10.0.1.10 dba@10.0.2.50\n```\n\n## SSH Tunneling\n\n```bash\n# Local port forward: access remote service on localhost\n# Access remote PostgreSQL (10.0.2.50:5432) via bastion at localhost:5432\nssh -L 5432:10.0.2.50:5432 ops@bastion.example.com -N\n\n# Remote port forward: expose local service to the remote network\n# Make local dev server (localhost:3000) available on server port 8080\nssh -R 8080:localhost:3000 user@server -N\n\n# Dynamic SOCKS proxy: route all traffic through the server\nssh -D 1080 user@server -N\n# Then configure browser or apps to use SOCKS5 proxy at localhost:1080\n\n# Tunnel with a background process\nssh -fN -L 5432:10.0.2.50:5432 ops@bastion.example.com\n# Find and kill the tunnel later\nps aux | grep \"ssh -fN\" | grep -v grep\nkill \u003Cpid>\n\n# Autossh for persistent tunnels (auto-reconnects)\nautossh -M 0 -f -N -L 5432:10.0.2.50:5432 ops@bastion.example.com \\\n  -o \"ServerAliveInterval=30\" -o \"ServerAliveCountMax=3\"\n```\n\n## Agent Forwarding (Use with Caution)\n\n```bash\n# Enable agent forwarding for a single connection\nssh -A user@bastion\n\n# From the bastion, your local keys are available to authenticate further\nssh deploy@10.0.1.10   # Uses your local key via the agent\n\n# SECURITY WARNING: Agent forwarding exposes your keys to anyone with root\n# on the intermediate host. Prefer ProxyJump instead.\n\n# Safer alternative: ProxyJump does not expose the agent\nssh -J ops@bastion deploy@10.0.1.10\n```\n\n## SSH Key Restrictions in authorized_keys\n\n```text\n# Restrict a key to a specific command only (backup key)\ncommand=\"\u002Fusr\u002Flocal\u002Fbin\u002Frun-backup.sh\",no-port-forwarding,no-X11-forwarding,no-agent-forwarding ssh-ed25519 AAAA... backup@example.com\n\n# Restrict a key to specific source IPs\nfrom=\"10.0.0.0\u002F24,192.168.1.0\u002F24\" ssh-ed25519 AAAA... admin@example.com\n\n# Read-only SFTP key with chroot\ncommand=\"internal-sftp\",no-port-forwarding,no-pty ssh-ed25519 AAAA... sftp-upload@example.com\n```\n\n## Troubleshooting\n\n| Symptom | Diagnostic Command | Common Fix |\n|---|---|---|\n| Connection refused | `ss -tlnp \\| grep 22` on server | Ensure sshd is running; check firewall rules |\n| Permission denied (publickey) | `ssh -vvv user@server` | Verify key is in authorized_keys, permissions 600\u002F700 |\n| Host key verification failed | `ssh-keygen -R server` | Remove stale host key; verify server identity |\n| Connection timeout | `ssh -o ConnectTimeout=5 user@server` | Check network path, security groups, NACLs |\n| Slow SSH login | Check `UseDNS` in sshd_config | Set `UseDNS no`; check reverse DNS |\n| Broken pipe \u002F dropped sessions | Add `ServerAliveInterval 60` to config | Configure keepalive on both client and server |\n| Agent forwarding not working | `ssh-add -l` on bastion | Ensure `-A` flag used and agent has keys loaded |\n| Tunnel port already in use | `ss -tlnp \\| grep \u003Cport>` | Kill existing tunnel or use a different local port |\n\n## Related Skills\n\n- `linux-administration` -- General Linux system administration\n- `user-management` -- Managing the users who connect via SSH\n- `systemd-services` -- Managing sshd as a systemd service\n- `performance-tuning` -- Network tuning for SSH performance\n\n## Limitations\n\n- Infrastructure commands can disrupt services: confirm target host\u002Fscope and have backups\u002Fsnapshots before mutating state.\n- Docs-only import: upstream scripts and templates not bundled.\n\n",{"name":5,"risk":25,"source":43,"license":14,"category":44,"metadata":45,"date_added":48,"description":7,"source_repo":49,"source_type":28,"compatibility":50,"license_source":51},"https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills","devops",{"author":46,"version":47},"devops-skills","1.0","2026-09-20","BagelHole\u002FDevOps-Security-Agent-Skills","Requires the relevant OS\u002Fplatform tooling and privileged access where noted. Docs-only; helper scripts and templates not bundled.","https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE","f3312ba749561b6159f477dbfc9313c875d40a56",".agents\u002Fskills_archive\u002Fssh-configuration","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612","2026-10-25 23:50:58",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill ssh-configuration",{"tool":63,"command":64},"bunx","bunx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill ssh-configuration",{"tool":66,"command":67},"pnpm","pnpm dlx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill ssh-configuration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fssh-configuration\u002FSKILL.md",true,[],[72,95,118,142,170,194],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":83,"publishedAt":38},"01M6Q0FA5FZ410Z33Z3TFQ4DBA","zero-trust","Implement zero-trust network architecture. Configure identity-based access, micro-segmentation, and continuous verification. Use when implementing modern security architectures.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzero-trust\u002FSKILL.md",[78],{"categoryNo":79,"categoryName":80,"taxonomyType":81,"taxonomyTypeDesc":82},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",[84,85,86,87,88,89,74,90,37,36,35,33,28,27,91,25,92,93,23,94],"ZeRO","trust","zero trust","architecture","assessment","verification","segmentation","active","scope","scripts","implementing",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":38},"01M6Q0F1YZJW3KX5FBKEVZ8CV4","zcode-delegate","Delegate coding tasks to the Z.AI ZCode CLI only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzcode-delegate\u002FSKILL.md",[],[102,103,104,105,106,107,108,109,110,111,112,113,114,33,30,28,115,116,25,117],"delegate","zcode","zcode delegate","review","cli","orchestration","tasks","run","Bash","model","node","read","orchestrator","desktop app","app","agent-orchestration",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":38},"01M6Q0ETK41VGNMYEXW0T00AJN","youtube-transcript","Fetch YouTube transcripts through DeepAPI or local fallback tooling and save clean text output.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript\u002FSKILL.md",[],[125,126,127,128,129,130,131,29,132,133,134,135,136,28,27,137,138,139,140,141],"transcript","youtube transcript","youtube","safe","github","codex","research","https","text","fetch","tooling","clean","local","output","deepapi","youtube transcripts","blob",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":159,"publishedAt":38},"01M6Q0EPPH2PVMDW40017F8WX0","youtube-transcript-skills","Fetch YouTube video transcripts, search videos\u002Fchannels, browse channels, and extract playlists via the getyoutubetranscript.com API - free tier, no card required.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript-skills\u002FSKILL.md",[148,151,154],{"categoryNo":149,"categoryName":150,"taxonomyType":81,"taxonomyTypeDesc":82},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":152,"categoryName":153,"taxonomyType":81,"taxonomyTypeDesc":82},"01JBSEEDCAT000000000000016","图像与多媒体",{"categoryNo":155,"categoryName":156,"taxonomyType":157,"taxonomyTypeDesc":158},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[125,126,127,160,128,161,129,130,29,162,163,164,165,134,166,28,27,167,168,169],"youtube transcript skills","gemini","search","api","Video","browse","api-integration","free","card","channels",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":180,"publishedAt":38},"01M6Q0EAB96PX83W5PTE8A0R8D","youtube-notetaker","Turn YouTube talks into local study notes with slides, transcripts, editable annotations, and a markdown-backed viewer.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-notetaker\u002FSKILL.md",[176,179],{"categoryNo":177,"categoryName":178,"taxonomyType":81,"taxonomyTypeDesc":82},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":152,"categoryName":153,"taxonomyType":81,"taxonomyTypeDesc":82},[127,181,182,106,128,183,184,185,186,29,164,187,188,189,190,27,191,137,192,193],"youtube notetaker","notetaker","workflow","official","notes","code","markdown","slides","annotations","README","study","dair-academy","viewer",{"skillNo":195,"name":196,"nameZh":6,"description":197,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":198,"categories":199,"keywords":201,"publishedAt":38},"01M6Q0E55F0GW5MX48V8HXS8B5","youtube-full","Fetch YouTube transcripts, search videos, browse channels, and extract playlists via TranscriptAPI — no yt-dlp, no Google API key, works from any cloud server.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-full\u002FSKILL.md",[200],{"categoryNo":149,"categoryName":150,"taxonomyType":81,"taxonomyTypeDesc":82},[202,127,203,204,128,161,162,205,206,163,164,165,134,207,166,28,27,167,208,140],"youtube full","full","google","server","dlp","credits","automatic"]