Disable yubikey ssh agent and only set bw agent on client machines
This commit is contained in:
9
.bashrc
9
.bashrc
@@ -117,9 +117,10 @@ fi
|
||||
|
||||
## Modified by me
|
||||
### GPG and SSH agent configurations for yubikey
|
||||
export GPG_TTY="$(tty)"
|
||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||
gpgconf --launch gpg-agent
|
||||
# This is now disabled since i use bw
|
||||
#export GPG_TTY="$(tty)"
|
||||
#export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||
#gpgconf --launch gpg-agent
|
||||
|
||||
### Passbook setup
|
||||
export PASSBOOK_GPG_PATH="/usr/bin/gpg"
|
||||
@@ -167,7 +168,7 @@ alias edit-vim='cd ~/.config/nvim && vim .'
|
||||
hostname=$(cat ~/hostname)
|
||||
if [[ $hostname == "arch-bepis" ]]; then
|
||||
export SSH_AUTH_SOCK=/home/wholteza/.bitwarden-ssh-agent.sock
|
||||
else
|
||||
elif [[ $hostname == "bepis-laptop" ]]; then
|
||||
export PATH="$PATH:/opt/nvim-linux-x86_64/bin"
|
||||
export SSH_AUTH_SOCK=/home/wholteza/snap/bitwarden/current/.bitwarden-ssh-agent.sock
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user