pserver over SSH

Guillaume Ramage <[email protected]> Thu, 31 Aug 2006 10:44:00 +0200
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Message-ID <[email protected]>
Hi,

This is a request for help about using javacvs over SSH.

My question:
Is it possible to establish a connection to a CVS repository over a SSH 
tunnel
without having to provide the password that the pserver authentication 
method usually requires ?

I developped a class which establishes the SSH tunnel (with public key 
authentication). It makes use of the JSch java library.
Then I try to open the pserver connection using its Input and Output 
Stream, as if the communication was plain text (not secured).
But I must still  authenticate to the CVS repository with the user 
password (which works fine), or else I get an authentication failure.
Providing a password is usually not required if we use cvs.exe with 
CVS_RSH environment variable set appropriately.
I don't want to set any CVS password in my java application.


thank you for your help
Guillaume Ramage