Description: ssh-copy-id: Strip trailing colons from hostname Author: Karl Goetz Author: Colin Watson Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1530 Bug-Debian: http://bugs.debian.org/226172 Bug-Ubuntu: https://bugs.launchpad.net/bugs/249706 Last-Update: 2010-02-27 Index: b/contrib/ssh-copy-id =================================================================== --- a/contrib/ssh-copy-id +++ b/contrib/ssh-copy-id @@ -38,10 +38,10 @@ exit 1 fi -{ eval "$GET_ID" ; } | ssh $1 "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 1 +{ eval "$GET_ID" ; } | ssh ${1%:} "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 1 cat <