3 if command -v ssh &> /dev/null;
5 # Launch screen remotely via ssh and resume the remote session.
8 ssh -t "$@" screen -D -R
12 if command -v ssh-agent &> /dev/null;
16 # Assumes "$HOME/.ssh-agent" has been updated with the info from the
17 # running, agent, this can be done by using a user con job:
18 # @reboot ssh-agent -s | grep -v echo > $HOME/.ssh-agent
20 if [ -z "$SSH_CLIENT" ] && [ -e "$HOME/.ssh-agent" ];
24 alias keyon="ssh-add -t 10800"
25 alias keyoff='ssh-add -D'
26 alias keylist='ssh-add -l'