Skip to content

Commit

Permalink
Use ssh-agent with keepassxc
Browse files Browse the repository at this point in the history
  • Loading branch information
nikarh committed Jan 12, 2024
1 parent 308eafa commit b480276
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if [[ -z "$USER_PROFILE" ]] || [[ ! -d "user/$USER_PROFILE" ]]; then
fi


if [ ! -f "$HOME/.ssh/id_rsa" ]; then
if [ ! -f "$HOME/.ssh/id_rsa.pub" ]; then
echo "Generating ssh key..."
ssh-keygen -C "$HOSTNAME" -f "$HOME/.ssh/id_rsa" -P "";
fi
Expand Down
1 change: 1 addition & 0 deletions user/workstation/user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ source "$ROOT/user/home/.profile"

systemctl enable --user syncthing
systemctl enable --user sunshine
systemctl enable --user ssh-agent

section "Downloading random stuff from the internet..."
git-get https://github.com/mrzool/bash-sensible.git \
Expand Down
2 changes: 2 additions & 0 deletions user/workstation/user/home/.config/Code/User/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
"ENOTSUP",
"errno",
"esbenp",
"espeak",
"etag",
"factorypath",
"fcntl",
Expand Down Expand Up @@ -222,6 +223,7 @@
"Resvg",
"retr",
"rkyv",
"rouille",
"rsvg",
"RTLD",
"runtimes",
Expand Down
2 changes: 2 additions & 0 deletions user/workstation/user/home/.profile
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ export _JAVA_AWT_WM_NONREPARENTING=1

# https://blog.ando.fyi/posts/diagnosing-an-unsual-wifi-issue/
export QT_BEARER_POLL_TIMEOUT=-1

export SSH_AUTH_SOCK=${XDG_RUNTIME_DIR}/ssh-agent.socket

0 comments on commit b480276

Please sign in to comment.