feat(ssh-utils): add ssh-authorize

This commit is contained in:
AJ ONeal
2023-06-11 08:27:52 +00:00
parent a3d62393c7
commit 12de674f54
2 changed files with 10 additions and 0 deletions
+6
View File
@@ -48,6 +48,12 @@ Enforces security for `/etc/ssh/sshd_config`
+ UsePAM no
```
**ssh-authorize**:
Adds public ssh keys from a string, file, or url to `~/.ssh/authorized_keys` to allow the owner(s) of the keys access to the system to which they're added.
Also performs various checks to prevent errors.
**ssh-setpass**:
`ssh-setpass` will ask you for your old passphrase (if any) and then for the new
+4
View File
@@ -4,12 +4,16 @@ set -u
__install_ssh_utils() {
rm -f \
"$HOME/.local/bin/ssh-authorize" \
"$HOME/.local/bin/ssh-pubkey" \
"$HOME/.local/bin/ssh-setpass" \
"$HOME/.local/bin/ssh-adduser" \
"$HOME/.local/bin/sshd-prohibit-password"
# done
webi_download \
"$WEBI_HOST/packages/ssh-authorize/ssh-authorize" \
"$HOME/.local/bin/ssh-authorize"
webi_download \
"$WEBI_HOST/packages/ssh-pubkey/ssh-pubkey.sh" \
"$HOME/.local/bin/ssh-pubkey"