linuxShortcuts/SSH/check-ssh-identity.sh

4 lines
89 B
Bash
Raw Normal View History

#!/bin/bash
# Add a SSH identity if nothing were found
ssh-add -l > /dev/null || ssh-add