summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gnome-ssh-askpass2.c2
-rw-r--r--contrib/ssh-copy-id2
2 files changed, 3 insertions, 1 deletions
diff --git a/contrib/gnome-ssh-askpass2.c b/contrib/gnome-ssh-askpass2.c
index 9d97c30c0..04b3a110e 100644
--- a/contrib/gnome-ssh-askpass2.c
+++ b/contrib/gnome-ssh-askpass2.c
@@ -209,6 +209,8 @@ main(int argc, char **argv)
209 209
210 gtk_init(&argc, &argv); 210 gtk_init(&argc, &argv);
211 211
212 gtk_window_set_default_icon_from_file ("/usr/share/pixmaps/ssh-askpass-gnome.png", NULL);
213
212 if (argc > 1) { 214 if (argc > 1) {
213 message = g_strjoinv(" ", argv + 1); 215 message = g_strjoinv(" ", argv + 1);
214 } else { 216 } else {
diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id
index 9451aceec..86d037abd 100644
--- a/contrib/ssh-copy-id
+++ b/contrib/ssh-copy-id
@@ -41,7 +41,7 @@ fi
41# strip any trailing colon 41# strip any trailing colon
42host=`echo $1 | sed 's/:$//'` 42host=`echo $1 | sed 's/:$//'`
43 43
44{ eval "$GET_ID" ; } | ssh $host "umask 077; test -d ~/.ssh || mkdir ~/.ssh ; cat >> ~/.ssh/authorized_keys" || exit 1 44{ 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
45 45
46cat <<EOF 46cat <<EOF
47Now try logging into the machine, with "ssh '$host'", and check in: 47Now try logging into the machine, with "ssh '$host'", and check in: