From e2d40a097f5875c6176bd0313ee4d7a70691241a Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sat, 3 Apr 2021 01:21:05 +0200 Subject: Add alias to restart gpg/ssh after sleep Found on https://stackoverflow.com/a/44250739/1769515 a reference to the issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835394 That describes why ssh fails after the system wakes up from sleep This is a workaround to update the SSH variable with TTY And make sure that pinentry is also working properly. The speculation is that the sign_and_send_pubkey: signing failed: agent refused operation is because pinentry/config issues --- .bash_profile | 1 + 1 file changed, 1 insertion(+) (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index 1b903e3..6c5a5d9 100644 --- a/.bash_profile +++ b/.bash_profile @@ -27,6 +27,7 @@ alias srv="npx http-server" # start simple server alias grep='grep --color=auto' # enable coloring all the time alias tagme='ctags -R --languages=ruby --exclude=.git --exclude=log . $(bundle list --paths)' alias skipci='git commit --allow-empty -m "--skip-ci"' +alias rgpg='gpg-connect-agent updatestartuptty /bye' # alias g='git' # # look up the original completion command and replace the last with the alias # complete -o bashdefault -o default -o nospace -F __git_wrap__git_main g -- cgit v1.2.3