Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Commands/sshkey/_generate-key-pair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _sshkey generate-key-pair_

Generate an SSH public/private key pair for an SSH public key resource.

## Versions

### [2025-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3NzaHB1YmxpY2tleXMve30vZ2VuZXJhdGVrZXlwYWly/2025-04-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/sshpublickeys/{}/generatekeypair 2025-04-01 -->

#### examples

- Generate an RSA SSH key pair.
```bash
sshkey generate-key-pair --resource-group myResourceGroup --ssh-public-key-name mySshPublicKeyName --encryption-type RSA
```
3 changes: 3 additions & 0 deletions Commands/sshkey/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Manage Ssh Public Key
- [delete](/Commands/sshkey/_delete.md)
: Delete a SSH public key.

- [generate-key-pair](/Commands/sshkey/_generate-key-pair.md)
: Generate an SSH public/private key pair for an SSH public key resource.

- [list](/Commands/sshkey/_list.md)
: List all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys.

Expand Down

Large diffs are not rendered by default.

Loading
Loading