From b6ba3cc97527f0ad2bc6dda2a15a6bbb17fa4bf4 Mon Sep 17 00:00:00 2001 From: Tomas Paladin Volf Date: Sun, 27 Nov 2011 00:13:36 +0100 Subject: [PATCH] (password access) specify comment field in generated ssh pub key since gl-shell-setup runs as root, the comment in the generated key was 'root@...' instead of whatever userid it was being created for. This does not affect gitolite or ssh but it seems some people don't treat "comment" and "comment" and actually *do* stuff with it. (only code is from author; commit message is from committer) --- contrib/real-users/gl-shell-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/real-users/gl-shell-setup b/contrib/real-users/gl-shell-setup index dcc925d..b226d58 100755 --- a/contrib/real-users/gl-shell-setup +++ b/contrib/real-users/gl-shell-setup @@ -59,7 +59,7 @@ then } [ -f .ssh/id_rsa.pub ] || { - ssh-keygen -q -N "" -f .ssh/id_rsa >&2 + ssh-keygen -q -N "" -C $user@`hostname` -f .ssh/id_rsa >&2 chown $user .ssh/id_rsa .ssh/id_rsa.pub chmod go-rw .ssh/id_rsa chmod go-w .ssh/id_rsa.pub