Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > CVS over SSH question ...

CVS over SSH question ...
Thread Tools
Fresh-Faced Recruit
Join Date: Apr 1999
Location: Seattle, WA, USA
Status: Offline
Reply With Quote
Mar 1, 2004, 04:20 AM
 
Hi there ....


I am trying to set up CVS so that I can access my cvs repositories from my powerbook.

I followed the instructions as listed here: http://developer.apple.com/internet/...soverview.html

the repository is on my CUBE and seems to work correctly on that machine ... i.e. I can import projects and commit changes, etc ...

This is what I did so far:

1. on my powerbook: created the private and public key
2. SSH'd to my user account on the CUBE and placed the contents of the public key in a new file in .ssh/authorized_keys
3. logged out of my account on the CUBE and then re-ssh'd into that machine (where it askes my password.
4. logged out
5. tried to checkout one of the projects in CVS and it asked for my password
6. whatever else I did ... it asks my password ... apparently ignoring the public/private key

so, can someone explain what I am doing incorrectly? I am using Mac OS 10.3.2

Thanks in advance.


Gordon
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Mar 1, 2004, 10:27 AM
 
Just get ssh working without a password first.

Do "ssh -v hostname" and watch the output. See if you can figure out why it's not working.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Fresh-Faced Recruit
Join Date: Apr 1999
Location: Seattle, WA, USA
Status: Offline
Reply With Quote
Mar 1, 2004, 12:37 PM
 
thanks ... I'll give it a try


G.
     
Mac Enthusiast
Join Date: Nov 2001
Location: Adelaide, South Australia
Status: Offline
Reply With Quote
Mar 1, 2004, 11:58 PM
 
One thing to watch here is that the key you poke in .ssh/authorized_keys is actually a **single line**, and not chopped up into multiple lines. That snags quite a few people.

Easiest to just do something like the following on your machine...

scp ~/.ssh/key.pub username@cube.whatever:junk.filename
ssh username@cube.whatever "cat junk.filename >>.ssh/authorized_keys"

(yep, you'll have to enter your password twice, and maybe someone can do it
in one fell swoop, but that'll do for now!)

Cheers, and good luck,
Paul

[[Edit: trying to remove spurious underlining of "email addresses"... argh, forget it!]]
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:58 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2