/kube-dc:ssh-into-vmfrom kube-dc
Connects to a Kube-DC virtual machine via browser SSH, private route, Floating IP, or LoadBalancer Service. Covers checking VM access state, choosing reachable address, and handling private keys.
Ships in kube-dc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A VM's VMI address is private to its Project network unless the environment
provides a route to it. kubectl proxy does not make that address reachable,
and standard Project roles cannot use VM/VMI port-forward.
The Kube-DC browser SSH terminal is the simplest path and does not require writing the Project private key to disk.
kubectl get virtualmachine {vm} \
-o jsonpath='{.status.printableStatus}{"\n"}'
kubectl get virtualmachineinstance {vm} \
-o jsonpath='{.status.conditions[?(@.type=="AgentConnected")].status}{"\n"}'
kubectl get virtualmachineinstance {vm} \
-o jsonpath='{.status.interfaces[0].ipAddress}{"\n"}'
AgentConnected=True confirms the guest agent connection. It does not prove
that sshd is listening or that a workstation can route to the address.
Use the VMI address only from a host connected to the Project network through an operator-approved route, VPN, bastion, or equivalent network path.
kubectl get fip {vm}-fip \
-o custom-columns='READY:.status.ready,ADDRESS:.status.externalIP,TARGET:.status.resolvedTargetIP'
Wait for READY=true and use ADDRESS. Follow manage-networking when the FIP
does not exist.
kubectl get service {vm}-ssh \
-o jsonpath='{.status.loadBalancer.ingress[0].ip}{"\n"}'
Use the Service's external port, which may differ from guest port 22. Follow
expose-service for Service and EIP creation.
Projects generate:
| Secret | Keys | Purpose |
|---|---|---|
ssh-keypair-default | id_rsa, id_rsa.pub | Project RSA keypair |
authorized-keys-default | admin | Public key injected by KubeVirt |
When the generated key is appropriate, extract it to a protected temporary file. Do not echo it:
SSH_KEY="$(mktemp)"
trap 'rm -f "$SSH_KEY"' EXIT
kubectl get secret ssh-keypair-default \
-o jsonpath='{.data.id_rsa}' | base64 -d > "$SSH_KEY"
chmod 600 "$SSH_KEY"
The private key is shared at Project scope. For narrower access, create a
separate Secret containing only approved public keys and reference that Secret
from the VM's accessCredentials instead of changing the generated keypair.
kubectl create secret generic {vm}-authorized-keys \
--from-file={key-owner}=/path/to/id_ed25519.pub
VM fragment:
accessCredentials:
- sshPublicKey:
source:
secret:
secretName: "{vm}-authorized-keys"
propagationMethod:
qemuGuestAgent:
users:
- "{catalog-default-user}"
Direct address:
ssh -i "$SSH_KEY" {catalog-default-user}@{reachable-address}
LoadBalancer with a translated port:
ssh -i "$SSH_KEY" -p {external-port} \
{catalog-default-user}@{loadbalancer-address}
Verify the server host key through the provider's trusted channel before accepting it. Do not disable host-key checking in automation.
targetPort is correct.AgentConnected and wait for the VM access credential
condition.Use the browser console for guest-side repair when SSH is unavailable.
mktemp, mode 0600, and cleanup on exit.kubectl proxy, virtctl ssh, or port-forward as standard
tenant access paths.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kube-dc/kube-dc-public --plugin kube-dc18 skills in this plugin
/check-quotaCheck Kube-DC Organization and Project quota before creating workloads, VMs, databases, Managed Clusters, public IPs, or storage./create-databaseCreate a managed database (PostgreSQL, MySQL, MariaDB, ClickHouse) or Valkey cache in a Kube-DC Project as a ManagedService, deliver its credential to workloads with a ServiceBinding Secret, and prepare backup and restore workflows./create-projectCreate a Kube-DC Project inside an existing Organization. Covers network selection, quota preflight, the Project manifest, and readiness verification./create-vmCreate a KubeVirt virtual machine in a Kube-DC Project using the live OS catalog, Project networking, supported storage, and the generated SSH keypair./deploy-appDeploy a containerized application to a Kube-DC Project as an Application (apps.kube-dc.com) or a plain workload, with optional persistent storage, a managed database, external exposure, or gated Shared GPU acceleration; set up keyless deploys, builds on push and pull request previews from a GitHub repository, with a managed container registry or the user's own; roll back, pause and inspect builds./deploy-web-stackDeploy a complete web application in a Kube-DC Project — a managed database (PostgreSQL, MySQL or MariaDB) with delivered credentials, an optional persistent volume, and an HTTPS hostname with a platform certificate through the shared Gateway, without a public IP. Use for WordPress, CMSs, APIs and any app that needs a database and a URL.Other plugins' skills for the same job