summaryrefslogtreecommitdiff
path: root/debian/patches/ssh-copy-id-trailing-colons.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/ssh-copy-id-trailing-colons.patch')
-rw-r--r--debian/patches/ssh-copy-id-trailing-colons.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/ssh-copy-id-trailing-colons.patch b/debian/patches/ssh-copy-id-trailing-colons.patch
new file mode 100644
index 000000000..624e8d5a7
--- /dev/null
+++ b/debian/patches/ssh-copy-id-trailing-colons.patch
@@ -0,0 +1,17 @@
1Index: b/contrib/ssh-copy-id
2===================================================================
3--- a/contrib/ssh-copy-id
4+++ b/contrib/ssh-copy-id
5@@ -38,10 +38,10 @@
6 exit 1
7 fi
8
9-{ eval "$GET_ID" ; } | ssh $1 "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 1
10+{ eval "$GET_ID" ; } | ssh ${1%:} "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 1
11
12 cat <<EOF
13-Now try logging into the machine, with "ssh '$1'", and check in:
14+Now try logging into the machine, with "ssh '${1%:}'", and check in:
15
16 .ssh/authorized_keys
17