help on wincvs via ssh

Moderator: devguy

help on wincvs via ssh

Postby bin » Wed Feb 18, 2004 10:39 am

I have run into some problems in using wincvs + puTTY + OpenSSH + CVSNT to connect to the cvs server automatically with public key authentication.All works on an WIN2K.

If I use a saved session to connect to the openssh server,the following information will appear:
Using username "bin".
Authenticating with public key "rsa-key-20040218"
Last login: Thu Feb 19 02:18:18 2004 from bin
Microsoft Windows 2000 [Version 5.00.2195]

It does work!

Then I use this saved session in WinCvs,when I check out a moudle,the following error information appeared, the the connection failed:

cvs -z9 checkout -c (in directory D:\)
cvs checkout: warning: unrecognized response `cvs: not found' from cvs server
cvs checkout: warning: unrecognized response `Authenticating with public key "rsa-key-20040218"
' from cvs server
cvs [checkout aborted]: end of file from server (consult above messages if any)

***** CVS exited normally with code 1 *****

It does NOT work!

who can help me to resolve this problem.Thanks a lot.

Bin
bin
 

Postby devguy » Wed Feb 18, 2004 12:50 pm

In the second case, CVS.exe is not in the PATH. The user might be different than the first case.
devguy
Site Admin
 
Posts: 1247
Joined: Mon Dec 02, 2002 11:52 am
Location: Palo Alto, USA

Postby Ellert at akrobatiek dot » Mon May 17, 2004 4:49 am

the following could/should be added to
http://www.devguy.com/fp/cfgmgmt/cvs/cvs_ssh.htm
for real n00bers like me.


when making the do.exe or whatever you name it with perl2exe
Code: Select all
system("C:/progra~1/plink.exe", "-ssh", "-pw", "yourpasswordhere", @ARGV);

make sure:
the cvsuser account can login (nologin does not work)
use the command
Code: Select all
C:/progra~1/plink.exe -ssh -pw yourpasswordhere yourserverhere.com

from the commandline on all your windows boxes once, to store the key. (otherwise cvs will not work and keep spewing errors (asking if you want to store the key, lol))
Allso remember to do this again if you ever reinstall your cvs-repositor machine, as the key will change.

In freeBSD 4.6 there is a problem with ssh, making authentication with private key/public key not work.
So stick to the litle perl/exe to hide the password, or upgrade :)

Regards,
Ellert.
Ellert at akrobatiek dot
 


Return to CVS Questions and Tips

Who is online

Users browsing this forum: No registered users and 0 guests

cron