linuxShortcuts/SSH/check-ssh-identity.sh

4 lines
89 B
Bash
Executable File

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