search for: check_keys_present

Displaying 3 results from an estimated 3 matches for "check_keys_present".

Did you mean: check_key_present
2025 Jan 10
2
[PATCH v2] ssh-add: support external parsing of key listing
...ts to agent for t in ${SSH_KEYTYPES}; do @@ -176,11 +181,7 @@ for t in ${SSH_KEYTYPES}; do fail "ssh-add failed exit code $?" done # make sure they are there -${SSHADD} -l > /dev/null 2>&1 -r=$? -if [ $r -ne 0 ]; then - fail "ssh-add -l failed: exit code $r" -fi +check_keys_present "after readd" trace "delete all agent keys using SIGUSR1" kill -s USR1 $SSH_AGENT_PID r=$? @@ -188,22 +189,14 @@ if [ $r -ne 0 ]; then fail "kill -s USR1 failed: exit code $r" fi # make sure they're gone -${SSHADD} -l > /dev/null 2>&1 -r=$? -if [ $...
2025 Jan 10
1
[PATCH v2] ssh-add: support external parsing of key listing
...ys/certs to agent for t in ${SSH_KEYTYPES}; do @@ -176,11 +181,7 @@ for t in ${SSH_KEYTYPES}; do fail "ssh-add failed exit code $?" done # make sure they are there -${SSHADD} -l > /dev/null 2>&1 -r=$? -if [ $r -ne 0 ]; then - fail "ssh-add -l failed: exit code $r" -fi +check_keys_present "after readd" trace "delete all agent keys using SIGUSR1" kill -s USR1 $SSH_AGENT_PID r=$? @@ -188,22 +189,14 @@ if [ $r -ne 0 ]; then fail "kill -s USR1 failed: exit code $r" fi # make sure they're gone -${SSHADD} -l > /dev/null 2>&1 -r=$? -if [ $r -ne 1...
2025 Jan 09
2
[PATCH] ssh-add: support parser-friendly operation
From: Corey Hickey <chickey at tagged.com> When ssh-add is used in a script like: if ! KEY_LISTING=$(ssh-add -l 2>&1) ; then echo "SSH agent error" >&2 exit 2 fi ...the operation fails when there is an agent but there are no keys in the agent. This is because ssh-add exits with status of 1. If the intent is to examine the keys in the agent,