trim down install, tighten sshd
This commit is contained in:
+4
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user