mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 12:06:25 +00:00
feat(ssh-utils): add ssh-authorize
This commit is contained in:
@@ -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,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"
|
||||
|
||||
Reference in New Issue
Block a user