added $SSH_AUTH_SOCK check and user=$1 - added sha1sums