From: Eric S. Raymond Date: Thu, 14 Dec 2006 07:22:56 +0000 (+0000) Subject: Propagate some options correctly. X-Git-Tag: 1.5~6 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=e8b345432d6d0a539e5556eaeab9fde651483839;p=ssh-installkeys.git Propagate some options correctly. --- diff --git a/sshauth b/sshauth index cf8d668..e4abf73 100755 --- a/sshauth +++ b/sshauth @@ -123,8 +123,8 @@ echo "Local configuration looks correct." if [ $delete = yes ] then - ssh ${port} ${verbose} -l ${user} ${host} "rm -fr .ssh" - echo "Keys for $user and $host have been deleted." + ssh -T ${port} ${verbose} ${quiet} -l ${user} ${host} "rm -fr .ssh" + echo "Keys for ${user}@${host} have been deleted." exit 0 fi @@ -192,7 +192,7 @@ then echo "Here is the agent script that would be run:" echo "$agent" exit 0 -elif echo "$agent" | ssh -T ${verbose} ${quiet} ${user}@${host} +elif echo "$agent" | ssh -T ${port} ${verbose} ${quiet} ${user}@${host} then echo "Installation or check successful." exit 0