From eee26cb966bdcf90426536c80f76284ab4291571 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 14 Dec 2006 04:21:42 +0000 Subject: [PATCH] This version might work, --- sshauth | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/sshauth b/sshauth index fd337d4..e392614 100755 --- a/sshauth +++ b/sshauth @@ -169,16 +169,28 @@ fixperms .ssh if [ -x .ssh/authorized_keys ] then echo \"Remote authorized_keys file will not be overwritten.\" - echo \"To remove it, do 'sshauth -d ${user}@$host}'.\" + echo \"To remove it, do 'sshauth -d ${user}@${host}'.\" exit 1 +elif [ \$checkonly = 'yes' ] +then + echo \"Remote .ssh exists, authorized_keys could be installed.\" else echo \"Creating remote .ssh/authorized_keys file...\" + cat >.ssh/authorized_keys <