From 12de674f54ea5658c6a348bf7c24c0954cb24ea4 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 10 Jun 2023 09:36:19 +0000 Subject: [PATCH] feat(ssh-utils): add ssh-authorize --- ssh-utils/README.md | 6 ++++++ ssh-utils/install.sh | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ssh-utils/README.md b/ssh-utils/README.md index e7f385f..4685da0 100644 --- a/ssh-utils/README.md +++ b/ssh-utils/README.md @@ -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 diff --git a/ssh-utils/install.sh b/ssh-utils/install.sh index 1d601fd..2f22f89 100644 --- a/ssh-utils/install.sh +++ b/ssh-utils/install.sh @@ -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"