Add key removal from ssh-agent

This commit is contained in:
Russ Long 2019-02-07 13:53:59 -05:00
parent 22cb803624
commit a29c8b5d67

3
ssh.sh
View File

@ -36,5 +36,8 @@ EOF
#SSH to the host
ssh $hostname
#remove the key from the ssh-agent
ssh-add -d $keyfile
#remove the key
rm -f $keyfile