New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth fail for methods 'publickey' using ssh-agent #328
Comments
Hi @cloneit,
Thanks, |
Hi @norrisjeremy , Yes. SSH-agent are running and keys are pre-loaded. Below are the logs from the machine: [ssh-agent] Looking for ssh-agent implementation... |
Hi @cloneit, I'm not sure then. You have supplied very little information that we can use to assist you. Thanks, |
Hi @norrisjeremy , I can see both public and private keys getting pre-loaded in the logs. It is working with 0.1.55 version and Java version 8. Now we are on Java v11 and using below lib versions. Tried the workaround following these threads: #85 and #65 Added JunitSocketFactory lib as we are on Java11 and UnixDomainSocketFactory is available on Java v16+. is it something missing from the implementation(code-snippet shared above)?
|
Hi @norrisjeremy , Did you got chance to look at my above reply? Thanks, |
Hi @cloneit, Based upon the limited information you have provided (as you still haven't enabled logging in JSch), we can only conclude that the issue you are having is one of the following:
Additionally, you appear to be using an old version of JGit ( Thanks, |
First of all, thank you maintaining this library.
I was facing Auth fail issue with Jsch 0.1.55 version. I recently saw this forked repository and tried to use the forked version of this Jsch version: 0.2.8. I am running on java_v11_oracle_runtime:0.18.1.
I am getting failure while running this for cloning a git repo using ssh-agent:
Auth fail for methods 'publickey' 11:32:22 at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:255) 11:32:22 at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:302) 11:32:22 at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:200)
Below is the code snippet for creating a Jsch session using ssh-agent and SSHSessionFactory:
`SshSessionFactory.setInstance(new JschConfigSessionFactory()
{
@OverRide
protected void configure(Host host, Session session)
{
session.setConfig("StrictHostKeyChecking", "false");
}
Would appreciate if you can help on this?
Thanks,
Ramesh
The text was updated successfully, but these errors were encountered: