ssh-into-vm

Automate SSH access to Kube-DC VMs using project keys and discovered IPs.

34|5|Updated Mar 5, 2025
One-click install
npx skills add https://github.com/kube-dc/kube-dc-public --skill ssh-into-vm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ssh-into-vm
Source: https://github.com/kube-dc/kube-dc-public/tree/main/skills/ssh-into-vm
Command: npx skills add https://github.com/kube-dc/kube-dc-public --skill ssh-into-vm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

SSH into a Kube-DC VM using the project's auto-generated SSH keypair, simplifying key extraction, VM IP discovery, and remote access via internal or external addresses.

Core Features & Use Cases

  • Extracts the private key from the project secret and secures it for SSH access
  • Discovers VM IP addresses (internal, FIP/EIP) and verifies guest agent status
  • Initiates a secure SSH session to the target VM and supports clean-up steps

Quick Start

Extract the project SSH key, locate the VM IP, and SSH into the VM using the available address.

Frequently Asked Questions about ssh-into-vm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I SSH into a Kube-DC VM using auto-generated keys?

To SSH into a Kube-DC VM, the process extracts the private key from the project secret, locates the VM's internal or FIP/EIP address, and initiates a secure SSH session. It verifies guest agent status and handles key cleanup after connection.

How does secret-based key retrieval work for Kube-DC VMs?

Secret-based key retrieval works by extracting the auto-generated private SSH key directly from the project secret. This secures the key for authenticating the SSH session without manual key generation or external credential management.

Can I connect to a Kube-DC VM using an internal IP address?

Yes, you can connect to a Kube-DC VM using its internal IP address. The process resolves VM IPs via VMI status and Kubernetes services, supporting both internal IP access and FIP/EIP-based external connections.

Do I need to manually verify the guest agent status before connecting?

No, manual verification is unnecessary. The SSH access workflow automatically verifies the guest agent status during VM IP discovery to ensure the target environment is ready before initiating the SSH connection.

What is the best way to automate SSH access to Kubernetes-managed VMs?

Automating SSH access to Kubernetes-managed VMs is best handled by retrieving project keys, resolving VM IPs via VMI status, and establishing SSH connections. This approach safely manages authentication and performs key cleanup after the session.

Are there limitations when establishing SSH connections to Kube-DC VMs?

SSH connections to Kube-DC VMs are limited to environments using Kube-DC VMs managed by Kubernetes. Connectivity relies on successfully resolving VMI status and services for IP discovery and requires proper secret-based key access.