Mercurial-server on pogo v2

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Mercurial-server on pogo v2

Postby forbajato » Sun Jul 15, 2012 1:39 pm

I am trying to install a mercurial-server on my pogo v2. I installed mercurial-server from AUR (along with the python and mercurial dependenies. I have sshd running on the box. I have been trying to follow this tutorial http://dev.lshift.net/paul/mercurial-server/docbook.html. I think my problem may be in the way the SSH keys are being handled. I can log in to the server without a password, using my ssh public key. When I do
$this->bbcode_second_pass_code('', 'ssh-add -L')
however I see:
$this->bbcode_second_pass_code('', 'The agent has no identities')
That just doesn't seem right, what should the output be? I can't figure out from the man pages and some searching what should be happening so I can't diagnose where the problem lies any further than this.

Any suggestions are appreciated.

thomas
forbajato
 
Posts: 16
Joined: Tue Mar 20, 2012 8:58 pm

Re: Mercurial-server on pogo v2

Postby rty » Mon Jul 16, 2012 8:28 am

Are you able to SCP without password?

This might help: http://www.thegeekstuff.com/2008/06/per ... n-openssh/
Alarm + Samba + NginX + Php+ MySQL + phpMyAdmin on Raspberry Pi 3, Pogoplug 4, Pogoplug E02, Seagate Goflex Home
rty
 
Posts: 75
Joined: Sun Jun 03, 2012 8:57 am
Location: Singapore

Re: Mercurial-server on pogo v2

Postby forbajato » Mon Jul 16, 2012 10:47 am

$this->bbcode_second_pass_quote('rty', 'A')re you able to SCP without password?

This might help: http://www.thegeekstuff.com/2008/06/per ... n-openssh/


Yes, I can scp and ssh to the box without a password. Looking over that tutorial, it isn't much different from the tutorial I followed in setting things up. Main differences is the tutorial I used had ssh-copy-id to get the local public key onto the remote machine. That tutorial can be found here: http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/.

Bottom line - when I try to do anything with mercurial it asks for the hg user's password. I thought this was not supposed to happen since the keys for passwordless entry were set up. In mercurial server the hg user is created by the server and doesn't have a password, home directory, etc. I am still assuming there is something wrong with the way I have set up ssh access but am a bit mystified.

thomas
forbajato
 
Posts: 16
Joined: Tue Mar 20, 2012 8:58 pm

Re: Mercurial-server on pogo v2

Postby forbajato » Mon Jul 16, 2012 12:42 pm

A little more duck-duck-go-ing ...

It seems ssh-agent wasn't running on the plug. I started it with
$this->bbcode_second_pass_code('', 'exec ssh-agent $SHELL')

At that point I was able to add the key from my plug but not the key from the authorized-keys file. How do I get that to show up in the output of
$this->bbcode_second_pass_code('', 'ssh-add -L')

thomas
forbajato
 
Posts: 16
Joined: Tue Mar 20, 2012 8:58 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: Majestic-12 [Bot] and 278 guests