Skip to content

SSH access controls

SSH gives a person a full interactive shell inside a conversation’s shared container. These tools use the verified requester identity. Personal key changes and your own conversation SSH grant are self-service, with no manager or admin approval. Changes to another person’s grant require a manager/admin and a human approval at that tier. Host SSH setup is separate from key registration. See SSH access and VS Code.

Required: public_key (the single public-key line). Optional: label (string).

{
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA example-laptop",
"label": "Work laptop"
}

Scope and result: Registers a key only for the trusted requester already authorized in this conversation, including a named guest. Returns key fingerprint, family, label, and whether host export succeeded. Registration alone does not grant access to any conversation.

Limits: Only public keys; never private key material. Accepted families include ED25519, supported ECDSA and security-key forms, and RSA of at least 2,048 bits. DSA, malformed blobs, and multiline input are refused. The example demonstrates argument shape; replace it with your actual .pub line.

Arguments: none.

{}

Scope and result: Lists the requesting user’s registered key IDs, fingerprints, types, labels, added time, and last-use time. It never lists another person’s keys.

Limits: No user selector is accepted. A missing user context or no registered keys produces a explicit notice.

Required: key (your key fingerprint such as SHA256:…, or registered key ID).

{
"key": "SHA256:example-fingerprint"
}

Scope and result: Removes a matching key belonging to the requesting person and refreshes host authorized-key export. Returns the removed fingerprint or a no-match notice.

Limits: New connections using that key stop working across every conversation grant. Already open sessions end when they disconnect; this tool is not a force-disconnect command.

Optional: user (gateway user ID or supported mention); omit it to select your own verified identity.

{}

Scope and result: Enables your own SSH access immediately when you are already authorized in this conversation. Passing your own id or mention has the same effect. Selecting another person requires a current conversation manager or administrator and a human approval at that tier. Saves the person in this conversation’s SSH grant list and reports any outstanding setup/key conditions.

Limits: Self-service requires current conversation access, including a named guest grant; it cannot enable access to an unauthorized conversation. A manager selecting another person must select an approved gateway user or administrator. The broker checks conversation authorization on every connection. A grant can be saved before a key exists, but the key and host setup are still required to connect. Connections remain refused under the applicable Admin plus operator-home-mount policy.

Optional: user (gateway user ID or supported mention); omit it to select your own verified identity.

{}

Scope and result: Removes your own conversation SSH grant immediately. Selecting another person requires a conversation manager or administrator and a human approval. Returns whether any open sessions remain.

Limits: New connections are refused immediately. Existing sessions end when they disconnect. This does not remove the person’s globally registered public key or other conversation grants.

Arguments: none.

{}

Scope and result: Read-only connection/status view for a requester authorized in this conversation. Returns host setup state, granted people, registered-key readiness, live sessions, the SSH config block, and the working-folder/VS Code command when setup permits.

Limits: A displayed snippet is not a access grant. The broker rechecks the key ownership, conversation authorization/grant, and operator-home restriction on connection. The container stays leased while a SSH session is live; daemon restart drops it. All people in the container share its operating-system user, so set Git identity and coordinate edits.

Required: host (one exact public DNS hostname or IPv4/IPv6 address, without a URL, wildcard or port).

{
"host": "ssh.example.com"
}

Scope and result: Requests a durable human approval card for outbound SSH from this conversation’s container. Any currently authorized conversation member with write access may approve; manager/admin rights and /sudo are not required. The gateway appends the approved hostname or IP address to this conversation’s egressRawHosts, preserving other entries and settings. An existing exact entry needs no additional card.

Limits: Network must be on and the conversation must permit writes. Auto mode never approves the card. The saved request survives restarts and applies once; the requester and approver must still be authorized when it is decided. The card discloses that the existing egress list permits raw TCP ports 22, 5432 and 6543. Private, loopback and metadata addresses remain blocked, including after DNS changes. Approval supplies no SSH key or secret permission. Once approved, retry SSH with the existing key and -o ProxyCommand='/opt/channelgate/bin/cg-egress-connect %h %p'.