Updated new-ssh-key.ps1

This commit is contained in:
Markus Fleschutz 2024-09-04 18:30:08 +02:00
parent 14bb69aef0
commit 8abd390290

View File

@ -5,7 +5,7 @@
This PowerShell script creates a new SSH key for the user. This PowerShell script creates a new SSH key for the user.
.EXAMPLE .EXAMPLE
PS> ./new-ssh-key.ps1 PS> ./new-ssh-key.ps1
New SSH key with Ed25519 encryption saved to ~/.ssh - your public key is: New SSH key of Ed25519 type saved to ~/.ssh - your public key is:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILb8s5zU9YDApGQ82H45fMKVPMr5cw9fzh3PEBjZZ+Rm markus@PI ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILb8s5zU9YDApGQ82H45fMKVPMr5cw9fzh3PEBjZZ+Rm markus@PI
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -26,7 +26,7 @@ try {
} else { } else {
throw "No public key found." throw "No public key found."
} }
"✔️ New SSH key with $enc encryption saved to ~/.ssh - your public key is:" "✔️ New SSH key of $enc type saved to ~/.ssh - your public key is:"
" $publicKey" " $publicKey"
exit 0 # success exit 0 # success
} catch { } catch {