---
title: "pols ssh-key"
description: "Manage the SSH public keys that open your org's sandboxes"
---

<!-- Generated by scripts/reference.mjs from the pols CLI's --help. Do not edit; run `npm run reference:sync`. -->

Manage the SSH public keys that open your org's sandboxes

## Usage

```text
pols ssh-key [flags]
pols ssh-key [command]
```

## Subcommands

| Command | Description |
| --- | --- |
| [`pols ssh-key add`](#pols-ssh-key-add) | Register a public key (default ~/.ssh/id\_ed25519.pub, id\_ecdsa.pub or id\_rsa.pub; - reads stdin) |
| [`pols ssh-key ls`](#pols-ssh-key-ls) | List registered keys |
| [`pols ssh-key rm`](#pols-ssh-key-rm) | Remove a key (by ID); open sessions stay open |

## Flags

```text
-h, --help   help for ssh-key
```

## pols ssh-key add

Register a public key (default ~/.ssh/id\_ed25519.pub, id\_ecdsa.pub or id\_rsa.pub; - reads stdin)

### Usage

```text
pols ssh-key add [FILE] [flags]
```

### Flags

```text
-h, --help          help for add
    --name string   label (default: the key's comment)
```

## pols ssh-key ls

List registered keys

### Usage

```text
pols ssh-key ls [flags]
```

### Flags

```text
-h, --help   help for ls
```

## pols ssh-key rm

Remove a key (by ID); open sessions stay open

### Usage

```text
pols ssh-key rm KEY [flags]
```

### Flags

```text
-h, --help   help for rm
```

The [global flags](/reference/cli/#global-flags) work with this command too.
