Kill others ssh-agent before relaunching one
This commit is contained in:
parent
4649360306
commit
b03703bf96
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ launch_screen()
|
|||
if [ -n "$3" ] && [ -f "$3" ]
|
||||
then
|
||||
TMP=`$SU -c 'mktemp' intradmin`
|
||||
$SU -c "killall ssh-agent" intradmin
|
||||
$SU -c "ssh-agent" intradmin > "$TMP"
|
||||
$SU -c ". $TMP; ssh-add '$3'" intradmin
|
||||
CMD=". $TMP; ssh-add -l; echo; $CMD"
|
||||
|
|
Reference in a new issue