Stop adding SSH keys automatically

This commit is contained in:
Anthony Rose 2022-08-29 20:22:06 +01:00
parent a33355e921
commit 9aaef26dcf

View file

@ -210,14 +210,6 @@ then
alias dnf=yum alias dnf=yum
fi fi
if [ -S "$SSH_AUTH_SOCK" ] \
&& [ -r "$HOME/.ssh/id_ed25519" ] \
&& [ -r "$HOME/.ssh/id_ed25519.pub" ] \
&& [ "$(ssh-add -l | grep -c "$(ssh-keygen -l -f "$HOME/.ssh/id_ed25519.pub")")" = 0 ]
then
ssh-add "$HOME/.ssh/id_ed25519"
fi
usermotd () { usermotd () {
if [ -n "$_acp_motd_shown" ] if [ -n "$_acp_motd_shown" ]
then then