Skip to content

Commit 31a28ac

Browse files
committed
scw-doc-gen
1 parent 8fdd9c6 commit 31a28ac

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

docs/commands/autocomplete.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ scw autocomplete script [arg=value ...]
4545

4646
| Name | | Description |
4747
|------|---|-------------|
48-
| shell | Default: `/bin/bash` | |
48+
| shell | Default: `/usr/bin/zsh` | |
4949
| basename | Default: `` | |
5050

5151

docs/commands/instance.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ This API allows you to manage your Instances.
8787
- [Wait for snapshot to reach a stable state](#wait-for-snapshot-to-reach-a-stable-state)
8888
- [SSH Utilities](#ssh-utilities)
8989
- [Add a public key to a server](#add-a-public-key-to-a-server)
90+
- [Fetch SSH keys from the console and install them on multiple servers](#fetch-ssh-keys-from-the-console-and-install-them-on-multiple-servers)
9091
- [Install a ssh config with all your servers as host
9192
It generate hosts for instance servers, baremetal, apple-silicon and bastions](#install-a-ssh-config-with-all-your-servers-as-host
9293
it-generate-hosts-for-instance-servers,-baremetal,-apple-silicon-and-bastions)
@@ -2769,6 +2770,29 @@ scw instance ssh add-key [arg=value ...]
27692770

27702771

27712772

2773+
### Fetch SSH keys from the console and install them on multiple servers
2774+
2775+
Keys registered via the Scaleway Console will be propagated to the selected servers.
2776+
The command 'ssh <server-ip> -t -l root scw-fetch-ssh-keys --upgrade' will be run on the servers matching the zone and project filters.
2777+
Keep in mind that you need to be able to connect to your server with another key than the one you want to add.
2778+
Keep in mind that SSH keys are scoped by project
2779+
2780+
**Usage:**
2781+
2782+
```
2783+
scw instance ssh fetch-keys [arg=value ...]
2784+
```
2785+
2786+
2787+
**Args:**
2788+
2789+
| Name | | Description |
2790+
|------|---|-------------|
2791+
| project-id | | Apply the keys to all servers in the given Project |
2792+
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `fr-par-3`, `nl-ams-1`, `nl-ams-2`, `nl-ams-3`, `pl-waw-1`, `pl-waw-2`, `pl-waw-3` | Zone to target. If none is passed will use default zone from the config |
2793+
2794+
2795+
27722796
### Install a ssh config with all your servers as host
27732797
It generate hosts for instance servers, baremetal, apple-silicon and bastions
27742798

@@ -2807,7 +2831,7 @@ scw instance ssh list-keys <server-id ...> [arg=value ...]
28072831

28082832
| Name | | Description |
28092833
|------|---|-------------|
2810-
| server-id | Required | Server to add your key to |
2834+
| server-id | Required | Server which keys are to be listed |
28112835
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `fr-par-3`, `nl-ams-1`, `nl-ams-2`, `nl-ams-3`, `pl-waw-1`, `pl-waw-2`, `pl-waw-3` | Zone to target. If none is passed will use default zone from the config |
28122836

28132837

0 commit comments

Comments
 (0)