Page MenuHomePhabricator

Fix sync scripts (scap, sync-common-all, etc) to fail fast if ssh-agent not set up
Closed, ResolvedPublic

Description

The sync scripts using dsh are pretty much useless without a ssh-agent set up as you get asked a billion times for your password. They should check the environment and tell you you're being dumb if it's not there... or else maybe pop you into a temporary ssh-agent so you only need to verify your key passphrase once at the start.


Version: unspecified
Severity: enhancement

Details

Reference
bz20080

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:51 PM
bzimport set Reference to bz20080.
bzimport added a subscriber: Unknown Object (MLST).

jeluf wrote:

Added:

if [ ! -S "$SSH_AUTH_SOCK" ]; then

echo >&2 "SSH_AUTH_SOCK not set or not pointing to a socket."
echo >&2 "Did you start your ssh-agent?"
exit 1

fi

to sync-common-file and scap.