Joey Hess wrote:
> Abhishek Dasgupta wrote:
> > I am using mr for updating my configuration repositories. Right now, the
> > setup is quite simple, with my netbook as the primary computer, pushing
> > to a git server at home.
> > As I plan on using other machines with the configs as well, how can I
> > configure so that git can pull via the ssh://git... address to my server
> > in crontab? Is there any way ssh-agent can be accessed within crontab,
> > or must these secondary machines pull via anonymous git:// URLs?
> > Anonymous updating is OK, but I won't be able to push from these
> > machines. Does anyone have an idea about how to get around this problem?
> Hmm, your subject tricked me, this is not mr-specific. Anyway..
> I sometimes just use git:// and in the rare case I need to push from
> such a checkout, will git push ssh:// directly and enter a password.
> I sometimes set up ssh keys that are only allowed to run git-shell on
> the server. This is accomplished as follows in its .authorized-keys:
> command="perl -e 'exec qw(git-shell -c),
> ssh-rsa ...
> I have this in .ssh/config, so that a special key will be used when
> sshing to git.* domains. This way the limited use key is not used when
> normally sshing to the server.
> Host git.*
> IdentityFile ~/.ssh/id_rsa.git
Thanks for the git-shell tip. The main reason I would be needing that
would be to checkout private data over ssh in mr through cron, otherwise
git:// repositories would have been fine.
vcs-home mailing list