You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### 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
+
2772
2796
### Install a ssh config with all your servers as host
2773
2797
It generate hosts for instance servers, baremetal, apple-silicon and bastions
| server-id | Required | Server to add your key to|
2834
+
| server-id | Required | Server which keys are to be listed|
2811
2835
| 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 |
0 commit comments