Re: Xcode CVS over SSH w/ no keys
Re: Xcode CVS over SSH w/ no keys
- Subject: Re: Xcode CVS over SSH w/ no keys
- From: GoochRules! <email@hidden>
- Date: Fri, 12 Dec 2003 12:11:47 -0700
On Dec 12, 2003, at 01:22, Markus Hitter wrote:
Am 11.12.2003 um 23:53 schrieb GoochRules!:
I am attempting to connect to an internal cvs server via ssh using
password authentication. I do not have any keys in ~/.ssh on my
powerbook.
Is basic ssh working? I.e., can you do a "ssh <cvsserver> ls"?
Yes, all this time, basic ssh has been working.
If not, remove $HOME/.ssh on all participating machines, then do on
the PowerBook:
ssh-keygen -t dsa
<hit Enter a few times>
On the CVS server, go to the "sharing" control panel and activate ssh
("services", 4th from top). Then, do
mkdir $HOME/.ssh
chmod 700 $HOME/.ssh
Then again on the PowerBook:
scp $HOME/.ssh/id_dsa.pub <cvsserver>:/tmp/bla # This will ask you
for your password.
ssh <cvsserver> # This will ask you for your password again.
cat /tmp/bla >>$HOME/.ssh/authorized_keys
rm /tmp/bla
exit
ssh <cvsserver> ls # Test, should work without password now.
Done. But I am still asked for my password. FYI, i have ssh installed
from fink. Both /sw/bin/ssh and /usr/bin/ssh give the same results:
both work, but both ask for password. I do not have a passphrase set
on my dsa key.
In Xcode I now get:
/usr/bin/cvs status project.pbxproj
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password,keyboard-interactive).
cvs [status aborted]: end of file from server (consult above messages
if any)
Add as many PowerBooks as you want with this sequence. The sequence on
the server is needed only once, of course.
This should make password-free ssh working without fiddling with
ssh-agent or any additional software. As I didn't see this most easy
procedure in public yet, I took the chance to write it down.
If it doesn't work, make sure your account on the server machine is
fine, i.e. you can log in and use it.
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password,keyboard-interactive).
cvs [status aborted]: end of file from server (consult above messages
if any)
Looks like you use the wrong or a faulty account on the server machine.
...
setenv CVSROOT :ext:email@hidden:/home/cvs
setenv CVS_RSH ssh
setenv SSH_AUTH_SOCK /tmp/501/SSHKeychain.socket
I'd unset SSH_AUTH_SOCK. Default shell is bash now ("echo $0").
Does it matter that I'm using tcsh on both the PowerBook, and the Linux
CVS server?
Then, try to use cvs on the command line:
cvs checkout <whateverproject>
This might give you additional hints.
HTH,
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.