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 {{{ # Start configuration added by Zim install {{{
# #
# User configuration sourced by interactive shells # User configuration sourced by interactive shells

View File

@ -1,6 +1,3 @@
urlview:
rm ~/.urlview || true
ln -s ~/.dotfiles/.urlview ~/.urlview
tmux: tmux:
git submodule init git submodule init
git submodule update git submodule update
@ -22,15 +19,8 @@ git:
ln -s ~/.dotfiles/.gitconfig ~/.gitconfig ln -s ~/.dotfiles/.gitconfig ~/.gitconfig
ln -s ~/.dotfiles/.gitmessage ~/.gitmessage ln -s ~/.dotfiles/.gitmessage ~/.gitmessage
xresources: gnupg:
rm ~/.Xresources for i in $(ls gnupg -1); do rm ~/.gnupg/$i; ln -s ~/.dotfiles/gnupg/$i ~/.gnupg/$i; done
ln -s ~/.dotfiles/.Xresources ~/.Xresources
xcompose:
rm ~/.XCompose || true
ln -s ~/.dotfiles/.XCompose ~/.XCompose
albert:
ln -s ~/.dotfiles/albert ~/.config/albert
zsh: zsh:
rm -rf ~/.zim || true rm -rf ~/.zim || true
@ -48,7 +38,7 @@ i3: dep
ln -s ~/.dotfiles/i3 ~/.config/i3 ln -s ~/.dotfiles/i3 ~/.config/i3
cd i3/conf/ && ./build.sh cd i3/conf/ && ./build.sh
.PHONY: clean zsh git vim tmux i3 albert .PHONY: clean zsh git vim tmux i3 albert gnupg
clean: clean:
rm -rf ~/.vim ~/.vimrc ~/.tmux ~/.tmux.conf ~/.gitconfig ~/.config/i3 rm -rf ~/.vim ~/.vimrc ~/.tmux ~/.tmux.conf ~/.gitconfig ~/.config/i3
rm -rf ~/.zshrc ~/.zimrc ~/.zim ~/.zlogin ~/.compton.conf rm -rf ~/.zshrc ~/.zimrc ~/.zim ~/.zlogin ~/.compton.conf
@ -56,11 +46,4 @@ clean:
rm -rf ~/.config/albert rm -rf ~/.config/albert
rm -rf /tmp/makedir/ rm -rf /tmp/makedir/
dep: all: clean zsh git vim tmux
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

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