[PATCH] ssh-copy-id should do chmod go-w
Matthew Vernon
matthew at debian.org
Fri Sep 28 06:49:30 EST 2001
Hi,
quick patch to ssh-copy-id to make it set the file modes more
correctly.
Thanks,
Matthew
--- contrib/ssh-copy-id.orig Thu Sep 27 21:47:44 2001
+++ contrib/ssh-copy-id Thu Sep 27 21:47:52 2001
@@ -33,7 +33,7 @@
exit 1
fi
-{ eval "$GET_ID" ; } | ssh $1 "test -d .ssh || mkdir .ssh ; cat >>
.ssh/authori
zed_keys ; chmod g-w . .ssh .ssh/authorized_keys"
+{ eval "$GET_ID" ; } | ssh $1 "test -d .ssh || mkdir .ssh ; cat >>
.ssh/authori
zed_keys ; chmod go-w . .ssh .ssh/authorized_keys"
cat <<EOF
Now try logging into the machine, with "ssh '$1'", and check in:
--
"At least you know where you are with Microsoft."
"True. I just wish I'd brought a paddle."
http://www.debian.org
More information about the openssh-unix-dev
mailing list