trim down install, tighten sshd

This commit is contained in:
2026-10-31 07:23:08 -06:00
parent 69a01d8977
commit 27115f8245
18 changed files with 220 additions and 39 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
#!/bin/bash
LINE='export SSH_AUTH_SOCK="$HOME/.bitwarden-ssh-agent.sock"'
# Use Bitwarden's SSH agent only while Bitwarden is running it, so ssh and
# ssh-add keep working with GNOME's agent for anyone who doesn't. A shell opened
# before Bitwarden starts uses GNOME's agent; open a new one afterwards.
LINE='if [ -S "$HOME/.bitwarden-ssh-agent.sock" ]; then export SSH_AUTH_SOCK="$HOME/.bitwarden-ssh-agent.sock"; fi'
if grep -qF "$LINE" ~/.bashrc; then
echo "Bitwarden SSH agent already configured in .bashrc"