ssh-copy-id no newline bug

Gert Doering gert at greenie.muc.de
Tue Mar 22 18:56:22 AEDT 2016


Hi,

On Tue, Mar 22, 2016 at 08:34:46AM +0100, Philip Hands wrote:
> I think that adding the following, just before the 'mkdir .ssh', should
> do the trick:
> 
>   [ "`tail -c1 .ssh/authorized_keys 2>/dev/null`" ] && echo > .ssh/authorized_keys ;
> 
> anyone know of portability issues with that?

I'm not sure what the test will do, but the "echo" should be an 
"echo >>", no?

gert


-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert at greenie.muc.de
fax: +49-89-35655025                        gert at net.informatik.tu-muenchen.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 291 bytes
Desc: not available
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20160322/8345b40f/attachment.bin>


More information about the openssh-unix-dev mailing list