[Logo] JCVSForum - Community Support For JCVS Users and Developers
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Having trouble with sshserver connect  XML
Forum Index » JCVS Users
Author Message
Anonymous



CVSRequest: opening server...
CVSClient.openServer: creating connection...
CVSClient.establishSSHConnection: creating connection...
CVSClient.establishSSHConnection: localHost=/192.168.3.116
CVSClient.establishSSHConnection: sshClient=com.sshtools.j2ssh.SshClient@864e43
CVSClient.establishSSHConnection: connected
CVSClient.authenticate: result=2
The authentication failed
could not create SSH connection for '22@javaserver' --> ssh authentication
failure
CVSRequest: server is not open.
CVSClient.buildErrorReponse: The CVS Request failed.
Failed to open socket to connect to cvs server '22@javaserver'.
could not create SSH connection for '22@javaserver' --> ssh authentication
failure
could not create SSH connection for '22@javaserver' --> ssh authentication
failure

The machine I am running the above on can access the
repository fine with:

export CVSROOT="javaserver:/work/home/abcsacct/cvsroot"
export CVS_RSH=ssh

/usr/bin/cvs $*

What am I failing to do?
Thanks in advance for any suggestions...
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

Hm. Not sure what that problem is.

What version of jCVS II are you using?
[Email] [WWW]
Anonymous



I have the exact same problem accessing CVS on a services that requires ssh
authentication using ssh keys... (I'm using 5.4.2 by the way)
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

I am still investigating this problem. I have a couple patches for the next
release that may be related, but I am not sure.
[Email] [WWW]
Anonymous



I also experience this problem. what should I do? SSH authentication failure. Although I can connect to the server using the same username and password in commandline cvs client.
Anonymous



I can now connect and execute cvs commands to the cvs server using ssh....

but not through jCVS but through tortoiseCVS....

Sorry. I like jCVS because it is java but I had no choice but to use another CVS client that performs better.
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

Need to add ssh initialization code documented in other thread.

[TODO]
[Email] [WWW]
Anonymous



PLEASE tell me how to fix this problem!
Anonymous



Anonymous wrote:CVSRequest: opening server...
CVSClient.openServer: creating connection...
CVSClient.establishSSHConnection: creating connection...
CVSClient.establishSSHConnection: localHost=/192.168.3.116
CVSClient.establishSSHConnection: sshClient=com.sshtools.j2ssh.SshClient@864e43
CVSClient.establishSSHConnection: connected
CVSClient.authenticate: result=2
The authentication failed
could not create SSH connection for '22@javaserver' --> ssh authentication
failure
CVSRequest: server is not open.
CVSClient.buildErrorReponse: The CVS Request failed.
Failed to open socket to connect to cvs server '22@javaserver'.
could not create SSH connection for '22@javaserver' --> ssh authentication
failure
could not create SSH connection for '22@javaserver' --> ssh authentication
failure

The machine I am running the above on can access the
repository fine with:

export CVSROOT="javaserver:/work/home/abcsacct/cvsroot"
export CVS_RSH=ssh

/usr/bin/cvs $*

What am I failing to do?
Thanks in advance for any suggestions...
Kevin Liao



Joined: 20/09/2007 22:54:12
Messages: 2
Offline

I also encountered the same error message with jCVS 5.4.2 and the check out example code. I put in the configuration code as suggested by another thread,

import com.sshtools.j2ssh.configuration.ConfigurationLoader;

...

ConfigurationLoader.initialize(false);

Still got the authentication error.

After glaring the code for quite a long time, I decided to switch the scrambled password in the example to the plain password,

//String scrambled =CVSScramble.scramblePassword( passWord, 'A' );
//project.setPassword( scrambled );

project.setPassword(passWord );

and things started to work. I'm guessing there are some difference in the intallation so sometimes too much scrambling may not work

Hope this will solve the problem for some of us.








[Email]
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

Thank you very much for your followup on this problem!
[Email] [WWW]
Kevin Liao



Joined: 20/09/2007 22:54:12
Messages: 2
Offline

O.K. There is actually some sample code posted in other thread so I'm hoping this is why the password needs to be scrambled in some case.


if (isPserver){ //scramble the password only when pserver is used.
project.setPassword ( CVSScramble.scramblePassword(password, 'A' ) );
} else { // do not scramble the password when SSH is used.
project.setPassword (password);
}

I should put a disclaimer here since I've not tested the pserver part since I don't use it.
[Email]
HelS



Joined: 01/07/2010 05:23:30
Messages: 3
Offline

I had such a problem, but I didn't know how to solve it. My brother did something I didn't understand. I work at the resume writing service, so I don't know much of all these matters.
[Email]
 
Forum Index » JCVS Users
Go to:   
Powered by JForum 2.1.9 © JForum Team