ssh-copy-id no newline bug

Tom G. Christensen tgc at jupiterrise.com
Wed Mar 23 08:10:54 AEDT 2016


On 22/03/16 08:34, Philip Hands wrote:
>
>    [ "`tail -c1 .ssh/authorized_keys 2>/dev/null`" ] && echo > .ssh/authorized_keys ;
>
> anyone know of portability issues with that?
>

On Solaris 10 and older /usr/bin/tail does not understand the -c1 
syntax, it needs -1c instead.
The XPG4 version in /usr/xpg4/bin/tail can understand either syntax.

I did not have Solaris 11 available to check.

-tgc


More information about the openssh-unix-dev mailing list