Browse Source

.profile ssh

main
Yigit Colakoglu 4 years ago
parent
commit
529ef56f29
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      .local/share/gnupg/gpg-agent.conf
  2. +2
    -2
      .profile

+ 1
- 0
.local/share/gnupg/gpg-agent.conf View File

@ -1,3 +1,4 @@
allow-preset-passphrase
max-cache-ttl 172800
enable-ssh-support
max-cache-ttl-ssh 86400

+ 2
- 2
.profile View File

@ -84,8 +84,8 @@ esac
# Setup SSH
if [ ! "$SSH_AUTH_SOCK" ]; then
echo UPDATESTARTUPTTY | gpg-connect-agent 2> /dev/null > /dev/null
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
eval "$(ssh-agent | head -n 2)"
grep -slR "PRIVATE" ~/.ssh/ | xargs ssh-add > /dev/null 2> /dev/null
fi
# Start xinit if logged in from tty1


Loading…
Cancel
Save