logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: :ext: from Windows...: msg#00281

Subject: Re: :ext: from Windows...
> I have wincvs insalled on a WindowsXP machine, and a CVS server running in
a
> Linux box, somewhere else.
> When I use a linux desktop with the :ext: method to checkout a project, it
> works flawlessly, but when I try to do the same with WinCVS I get the
> following error message:
>
> cvs checkout: warning: unrecognized response "ssh" is  not recognized as
an
> internal or external command

I guess on Linux there is an ssh-client installed by default. On Windows you
need to install and configure it manually. The one that has been reported to
work best is PuTTY/Plink. You could download it from:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

- Get putty.exe, plink.exe and possibly pageant.exe and puttygen.exe as
well.
- Start up PuTTY and enter the name of your CVS server, set the protocol to
SSH and try to connect. You might have to play with the additional settings
a little to get this right.
- Once you could successfully connect from PuTTY, save the session and
switch over to WinCvs.
- On the SSH options dialog (available via the Settings button on the
General tab of the Preferences window when you have chosen "ssh" as
authentication) tick the "SSH client" checkbox and point it to your
plink.exe .
- Now you should already be able to connect.

...however, this way you will be queried for your password on every single
command invokation. This is usually quite annoying and the recommended way
to avoid this is to use key-based authentication:
- If you haven't got a key pair already, you could generate it with
PuttyGen.exe .
- Now upload your public key to the server (I'm not sure about the specific
steps here - I only ever did that on Sourceforge who have a dedicated web
interface for uploading keys).
- Open up PuTTY again.
- On the Connection/SSH/Auth page, enter your private key file and also tick
the "Allow agent forwarding" checkbox.
- Now create a shortcut to pageant.exe and append your private key file to
its commandline.
- Run the Pageant shortcut. If you've protected your keypair with a
passphrase you will now be asked for it.
~ Pageant will now be running in the System tray.
- Connect from PuTTY. You should now get a popup asking for confirmation
about caching the server's fingerprint in the registry.
- Once you could successfully connect without having to enter your password
from PuTTY save the session.
- Now you should be able to run commands from WinCvs without having to enter
your password, just make sure that pageant is running with your key loaded.

All this will probably get significantly easier in one of the next WinCvs
releases (probably not yet in 1.3.14 though) with GUI support for the
built-in ssh protocol of CVSNT. Note that you could already use this
protocol now but you will have to do your clean checkouts from the
commandline. Your CVSROOT should look something like this:
:ssh;key=MyPrivateKeyFile:MyUserName@MyServer:/MyCvsroot

Note that if you're using key-based authentication and a
passphrase-protected private key, you will still need to load your private
key into Pageant.

Hope this helps.

P.S.: Rereading this post I guess I could use it as a starting point for a
new FAQ item (proposed title "What is the recommended way to use SSH with
WinCvs?"). The only step missing is how to upload the public key. Could
someone maybe supply some specifics about this? If I've forgotten anything
else or if there's anything else you think should go into a FAQ item, please
speak up.

Oliver
------
In everybody's best interest, please do not post or CC technical questions
to me in private unless they are specifically about a macro/product of mine
that is NOT already bundled with WinCvs.
----  ------------------
JID:  ogiesen@xxxxxxxxxx
ICQ:  18777742     (http://wwp.icq.com/18777742)


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. 
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/z3wwlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
cvsgui-unsubscribe@xxxxxxxxxxxxxxx
 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 





<Prev in Thread] Current Thread [Next in Thread>