Blame openssh-5.9p1-copy-id-restorecon.patch
|
Tomas Mraz |
4fc167 |
diff -up openssh-5.9p1/contrib/ssh-copy-id.restorecon openssh-5.9p1/contrib/ssh-copy-id
|
|
Tomas Mraz |
4fc167 |
--- openssh-5.9p1/contrib/ssh-copy-id.restorecon 2011-08-17 04:05:49.000000000 +0200
|
|
Tomas Mraz |
4fc167 |
+++ openssh-5.9p1/contrib/ssh-copy-id 2011-11-21 08:40:56.000000000 +0100
|
|
Tomas Mraz |
4fc167 |
@@ -41,7 +41,7 @@ fi
|
|
Tomas Mraz |
4fc167 |
# strip any trailing colon
|
|
Tomas Mraz |
4fc167 |
host=`echo $1 | sed 's/:$//'`
|
|
Tomas Mraz |
4fc167 |
|
|
Tomas Mraz |
4fc167 |
-{ eval "$GET_ID" ; } | ssh $host "umask 077; test -d ~/.ssh || mkdir ~/.ssh ; cat >> ~/.ssh/authorized_keys" || exit 1
|
|
Tomas Mraz |
4fc167 |
+{ eval "$GET_ID" ; } | ssh $host "umask 077; test -d ~/.ssh || mkdir ~/.ssh ; cat >> ~/.ssh/authorized_keys && (test -x /sbin/restorecon && /sbin/restorecon ~/.ssh ~/.ssh/authorized_keys >/dev/null 2>&1 || true)" || exit 1
|
|
Tomas Mraz |
4fc167 |
|
|
Tomas Mraz |
4fc167 |
cat <
|
|
Tomas Mraz |
4fc167 |
Now try logging into the machine, with "ssh '$host'", and check in:
|