From: Eric S. Raymond Date: Thu, 14 Dec 2006 04:21:42 +0000 (+0000) Subject: This version might work, X-Git-Tag: 1.5~11 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=eee26cb966bdcf90426536c80f76284ab4291571;p=ssh-installkeys.git This version might work, --- 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 <