mainSavannah Administration - Support: sr #106349, Passwordless SSH for CVS

 
 

sr #106349: Passwordless SSH for CVS

Submitter:  Damian Eads <eads>
Submitted:  Thu 24 Apr 2008 03:00:22 AM UTC
   
 
Category:  Source code repositories - developer access Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  Beuc
Operating System:  GNU/Linux Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 27 Apr 2008 08:01:04 AM UTC, comment #5: 

Good :)

I now added instructions at https://savannah.gnu.org/maintenance/SshAccess

Sylvain Beucler <Beuc>
Sat 26 Apr 2008 11:56:22 PM UTC, comment #4: 

Works like a charm! Thanks!

Damian Eads <eads>
Sat 26 Apr 2008 07:56:20 AM UTC, comment #3: 

Hi,

The 'authorized_keys' parts is on the server side, at Savannah. This is done automatically.

ssh-agent may be already started for you (that's the case for most distros). Check:
  echo $SSH_AGENT_PID - $SSH_AUTH_SOCK

Once ssh-agent is started, you need to type:
  ssh-add
to register your password. This will last for the duration of the X session.

After that, 'ssh' will not ask you your passphrase anymore.


Does it work for you?

Sylvain Beucler <Beuc>
Sat 26 Apr 2008 02:48:55 AM UTC, comment #2: 

Hi,

I have tried using ssh-agent as you have suggested. Following instructions here, http://www.gatsby.ucl.ac.uk/~iam23/compnotes/passwordless_ssh.html
I have created an <code>authorized_keys</code> file.

<pre>
[eads chestnut]$ cat ~/.ssh/id_dsa.pub | grep savannah.nongnu.org > ~/.ssh/authorized_keys
</pre>

Next, I'll run ssh-agent over a bash shell and do a cvs update. It should ask me for my password, which I am guessing is normal.

<pre>
[eads chestnut]$ ssh-agent bash
[eads chestnut]$ cvs update
Enter passphrase for key '/home/redfox/.ssh/id_dsa':
</pre>

Now when I try cvs updating once more, it asks me for my password again.

<pre>
[eads chestnut]$ cvs update
Enter passphrase for key '/home/redfox/.ssh/id_dsa':
</pre>

Obviously, I'm not doing something right. Please help.

Thank you.

Damian

Damian Eads <eads>
Fri 25 Apr 2008 07:51:46 PM UTC, comment #1: 

Hi,

Use ssh-agent maybe?

Sylvain Beucler <Beuc>
Thu 24 Apr 2008 03:00:22 AM UTC, original submission:  

Hi there,

I am trying to use my CVS repository without entering my password each time. I have followed the instructions in the document, https://savannah.nongnu.org/faq/?group_id=5802&question=User_Account_-_How_do_I_configure_my_SSH_access.txt and entered the generated key into the form here, https://savannah.nongnu.org/my/admin/editsshkeys.php

I waited several days and I can now check out my module from my repository.

<pre>
cvs -z3 -d:ext:user@cvs.savannah.nongnu.org:/sources/chestnut co chestnut
</pre>

However, Savannah still prompts me for a password, which is annoying. When my key generated in my ~/.ssh/id_dsa.pub is submitted through the Savannah web interface, it gets copied to the appropriate file in my ~/.ssh directory, right? If not, how can I get passwordless SSH to work?

Thank you.

Damian

Damian Eads <eads>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by Beuc (Posted a comment)
  • -email is unavailable- added by eads (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-04-27 Beuc StatusNeed Info Done
        Open/ClosedOpen Closed
    2008-04-25 Beuc StatusNone Need Info
        Assigned toNone Beuc

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code