You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am calling: ssh -i key-file -o PasswordAuthentication=no -o CertificateFile=cert-file username@host
In CLI it works fine but I can not do it in Java. This is example code:
I am trying to create java ssh session with private key and certificate. I have private key like:
and certificate file:
I am calling:
ssh -i key-file -o PasswordAuthentication=no -o CertificateFile=cert-file username@host
In CLI it works fine but I can not do it in Java. This is example code:
And this is result:
com.jcraft.jsch.JSchException: Auth fail for methods 'publickey,gssapi-keyex,gssapi-with-mic,password'
Any help?
The text was updated successfully, but these errors were encountered: