Re: [gitorious] Gitorious local install attempting to write ssh keys to /home/root/.ssh/authorized_keys
On Fri, Apr 6, 2012 at 1:46 PM, Kelketek Titikilik Rritaa < kelke...@gmail.com> wrote: > There should be a setting in your config/gitorious.yaml file > concerning which user is being used. You may also need to specifically > specify the home environment variable in environment.rb with a line > like: > > ENV['HOME'] = '/home/git' or you could pass HOME to where you start the poller script from: $ HOME=/home/git script/poller start Cheers, - Marius -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com
Re: [gitorious] Gitorious local install attempting to write ssh keys to /home/root/.ssh/authorized_keys
There should be a setting in your config/gitorious.yaml file concerning which user is being used. You may also need to specifically specify the home environment variable in environment.rb with a line like: ENV['HOME'] = '/home/git' On Fri, Apr 6, 2012 at 1:55 AM, Thomas Kjeldahl Nilsson wrote: > Hi Gregory, > > In a stock Gitorious install the Rails server process should be run by the > git user, not root: ie. changes to ~/.ssh/authorized_keys should resolve to > the git user home directory, not roots .ssh. So if you run everything as > root you will have problems. Could this be the problem? > > cheers, > Thomas > > > On 04/03/2012 10:26 PM, Gregory Rice wrote: >> >> Hey guys, >> >> My local install is writing to the wrong authorized_keys location >> instead of /home/git/.ssh/authorized_keys. >> >> I know this from the messaging log when I try to add another public >> key: >> >> Rails available: Adding dispatcher prepare callback. >> Rails available: Adding dispatcher prepare callback. >> SshKeyProcessor::on_error: Errno::ENOENT raised: No such file or >> directory - /root/.ssh/authorized_keys >> SshKeyProcessor::on_error: ActiveMessaging::AbortMessageException >> raised: ActiveMessaging::AbortMessageException >> >> What did I do wrong? >> >> Thanks, >> Greg Rice >> > > -- > best regards, > Thomas Kjeldahl Nilsson > http://gitorious.com > > > -- > To post to this group, send email to gitorious@googlegroups.com > To unsubscribe from this group, send email to > gitorious+unsubscr...@googlegroups.com -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com
Re: [gitorious] Gitorious local install attempting to write ssh keys to /home/root/.ssh/authorized_keys
Hi Gregory, In a stock Gitorious install the Rails server process should be run by the git user, not root: ie. changes to ~/.ssh/authorized_keys should resolve to the git user home directory, not roots .ssh. So if you run everything as root you will have problems. Could this be the problem? cheers, Thomas On 04/03/2012 10:26 PM, Gregory Rice wrote: Hey guys, My local install is writing to the wrong authorized_keys location instead of /home/git/.ssh/authorized_keys. I know this from the messaging log when I try to add another public key: Rails available: Adding dispatcher prepare callback. Rails available: Adding dispatcher prepare callback. SshKeyProcessor::on_error: Errno::ENOENT raised: No such file or directory - /root/.ssh/authorized_keys SshKeyProcessor::on_error: ActiveMessaging::AbortMessageException raised: ActiveMessaging::AbortMessageException What did I do wrong? Thanks, Greg Rice -- best regards, Thomas Kjeldahl Nilsson http://gitorious.com -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com
[gitorious] Gitorious local install attempting to write ssh keys to /home/root/.ssh/authorized_keys
Hey guys, My local install is writing to the wrong authorized_keys location instead of /home/git/.ssh/authorized_keys. I know this from the messaging log when I try to add another public key: Rails available: Adding dispatcher prepare callback. Rails available: Adding dispatcher prepare callback. SshKeyProcessor::on_error: Errno::ENOENT raised: No such file or directory - /root/.ssh/authorized_keys SshKeyProcessor::on_error: ActiveMessaging::AbortMessageException raised: ActiveMessaging::AbortMessageException What did I do wrong? Thanks, Greg Rice -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com