Use GPG for ssh

This commit is contained in:
Tobias Manske 2021-02-09 02:10:11 +01:00
parent 11ce631616
commit f75a95784e
Signed by: tobias
GPG Key ID: D5914DC71F2F9352
4 changed files with 25 additions and 22 deletions

5
.zshrc
View File

@ -1,3 +1,8 @@
# GPG for SSH
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
# Start configuration added by Zim install {{{
#
# User configuration sourced by interactive shells

View File

@ -1,6 +1,3 @@
urlview:
rm ~/.urlview || true
ln -s ~/.dotfiles/.urlview ~/.urlview
tmux:
git submodule init
git submodule update
@ -22,15 +19,8 @@ git:
ln -s ~/.dotfiles/.gitconfig ~/.gitconfig
ln -s ~/.dotfiles/.gitmessage ~/.gitmessage
xresources:
rm ~/.Xresources
ln -s ~/.dotfiles/.Xresources ~/.Xresources
xcompose:
rm ~/.XCompose || true
ln -s ~/.dotfiles/.XCompose ~/.XCompose
albert:
ln -s ~/.dotfiles/albert ~/.config/albert
gnupg:
for i in $(ls gnupg -1); do rm ~/.gnupg/$i; ln -s ~/.dotfiles/gnupg/$i ~/.gnupg/$i; done
zsh:
rm -rf ~/.zim || true
@ -48,19 +38,12 @@ i3: dep
ln -s ~/.dotfiles/i3 ~/.config/i3
cd i3/conf/ && ./build.sh
.PHONY: clean zsh git vim tmux i3 albert
.PHONY: clean zsh git vim tmux i3 albert gnupg
clean:
rm -rf ~/.vim ~/.vimrc ~/.tmux ~/.tmux.conf ~/.gitconfig ~/.config/i3
rm -rf ~/.zshrc ~/.zimrc ~/.zim ~/.zlogin ~/.compton.conf
rm -rf ~/.mailcap ~/.zsh
rm -rf ~/.mailcap ~/.zsh
rm -rf ~/.config/albert
rm -rf /tmp/makedir/
dep:
git clone https://aur.archlinux.org/powerline-fonts-git.git /tmp/makedir/powerline-font
cd /tmp/makedir/powerline-font && makepkg -Acsi
git clone https://aur.archlinux.org/bumblebee-status-git.git /tmp/makedir/bumblebee
cd /tmp/makedir/bumblebee && makepkg -Acsi
sudo pacman -S awesome-terminal-fonts perl-anyevent-i3 perl-json-xs w3m fzf fd
all: clean i3 zsh compton xcompose xresources albert git vim tmux urlview
all: clean zsh git vim tmux

7
gnupg/gpg-agent.conf Normal file
View File

@ -0,0 +1,7 @@
default-cache-ttl 2
default-cache-ttl-ssh 5
max-cache-ttl 2
max-cache-ttl-ssh 30
no-allow-external-cache
enable-ssh-support
ignore-cache-for-signing

8
gnupg/gpg.conf Normal file
View File

@ -0,0 +1,8 @@
default-key 020237017D271D4E2344D8F3FF57750B830AA3A1
no-greeting
expert
no-emit-version
no-comments
keyid-format 0xlong
keyserver hkps://keys.openpgp.org
keyserver-options no-honor-keyserver-url