]> thyrsus.com Git - ssh-installkeys.git/commitdiff
Propagate some options correctly.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 14 Dec 2006 07:22:56 +0000 (07:22 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 14 Dec 2006 07:22:56 +0000 (07:22 +0000)
sshauth

diff --git a/sshauth b/sshauth
index cf8d66850007eac34bfeffca549f5b689f02c88f..e4abf736d9adb3c34c2dbb5f1018e351e20d7d81 100755 (executable)
--- 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