feat: gpg config
This commit is contained in:
parent
4b783501e9
commit
de24c9fda0
14
install.sh
14
install.sh
@ -16,13 +16,17 @@ pkg=(
|
||||
|
||||
# TODO https://github.com/termux/termux-tools/blob/master/scripts/termux-change-repo.in
|
||||
yes | { pkg upgrade; pkg install "${pkg[@]}"; }
|
||||
pkg autoprune -y
|
||||
|
||||
# shellcheck disable=SC2174
|
||||
mkdir -pm 0700 "$HOME/.ssh"
|
||||
curl https://yw5n.com/ssh >> "$HOME/.ssh/authorized_keys"
|
||||
mkdir -pm 0700 "$HOME/.ssh" "$HOME/.gnupg/"
|
||||
curl -L https://yw5n.com/ssh >> "$HOME/.ssh/authorized_keys"
|
||||
|
||||
echo 'enable-ssh-support' > "$HOME/.gnupg/gpg-agent.conf"
|
||||
echo 'D17DD274A8FC460888C038B2F84ACB3A562A3BA4' > "$HOME/.gnupg/sshcontrol"
|
||||
|
||||
cat <<EOF >> "$HOME/.bash_profile"
|
||||
gpg-agent
|
||||
#sshd
|
||||
gpg-connect-agent /bye
|
||||
sshd
|
||||
|
||||
export SSH_AUTH_SOCK; SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user