Skip to content

Commit

Permalink
🩹 fix(ssh): Switch from GNOME Keyring to GCR.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Feb 28, 2024
1 parent cbbeb1b commit b59975f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .bin/setup-environment
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ source ~/.path

eval "$(gnome-keyring-daemon --start)" # gnome-keyring with PAM

export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh" # gcr-ssh-agent.socket

/usr/bin/systemctl --user import-environment PATH NODE_PATH SSH_AUTH_SOCK
/usr/bin/systemctl --user start environment.target
/usr/bin/systemctl --user start ready.timer
3 changes: 2 additions & 1 deletion .config/fish/exports.fish
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ set -x FZF_ALT_C_OPTS "--preview 'ls -la {} | head -$LINES'"

# ssh-agent socket
#set -x SSH_AUTH_SOCK "${XDG_RUNTIME_DIR}/ssh-agent.socket" # ssh-agent.service
set -x SSH_AUTH_SOCK (gnome-keyring-daemon --start 2>/dev/null | awk -F "=" '$1 == "SSH_AUTH_SOCK" { print $2 }') # gnome-keyring with PAM
#set -x SSH_AUTH_SOCK (gnome-keyring-daemon --start 2>/dev/null | awk -F "=" '$1 == "SSH_AUTH_SOCK" { print $2 }') # gnome-keyring with PAM
set -x SSH_AUTH_SOCK "$XDG_RUNTIME_DIR/gcr/ssh" # gcr-ssh-agent.socket

# ipe styles
if test -d $HOME/.ipe/styles
Expand Down
5 changes: 3 additions & 2 deletions .exports
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ export FZF_ALT_C_OPTS

# ssh-agent socket
#export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.socket" # ssh-agent.service
eval $(gnome-keyring-daemon --start 2>/dev/null) # gnome-keyring with PAM
export SSH_AUTH_SOCK # gnome-keyring with PAM
#eval $(gnome-keyring-daemon --start 2>/dev/null) # gnome-keyring with PAM
#export SSH_AUTH_SOCK # gnome-keyring with PAM
export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/gcr/ssh" # gcr-ssh-agent.socket

# ipe styles
if [ -d "$HOME/.ipe/styles" ] ; then
Expand Down

0 comments on commit b59975f

Please sign in to comment.