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: Thu, 18 Dec 2003 17:03:23 -0700
Greetings,
I just updated to Xcode 1.1, and am still having problems with cvs over
ssh using password or rsa/dsa key authentication.
with no keys in ~/.ssh i get one password prompt, and then:
/Users/goose/sshtest.xcode/
/usr/bin/cvs status project.pbxproj
reverse mapping checking getaddrinfo for <ip removed> failed - POSSIBLE
BREAKIN ATTEMPT!
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)
with id_dsa, id_dsa.pub, id_rsa, and id_rsa.pub in ~/.ssh i get:
/Users/goose/sshtest.xcode/
/usr/bin/cvs status project.pbxproj
reverse mapping checking getaddrinfo for <ip removed> failed - POSSIBLE
BREAKIN ATTEMPT!
Permission denied, please try again.
Permission denied, please try again.
Received disconnect from <ip removed>: 2: Too many authentication
failures for goose
cvs [status aborted]: end of file from server (consult above messages
if any)
In both cases I have id_*.pub on <ip
removed>/home/goose/.ssh/authorized_keys. <ip removed> is a RH Linux
7.2 (Enigma, kernel 2.4.7-10/i386).
I'm not worried at all about the reverse mapping warnings, for
command-line cvs (/sw/bin/[cvs|ssh] and /usr/bin/[cvs|ssh]) still
works.
On Dec 12, 2003, at 12:11, GoochRules! wrote:
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.
_______________________________________________
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.