#!/bin/sh tmpfile="$(mktemp)" chmod 700 $tmpfile echo "pass ssh" > $tmpfile export SSH_ASKPASS="$tmpfile" export SSH_ASKPASS_REQUIRE="force" ssh-add rm $tmpfile