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
val keyProvider = ssh.loadKeys(config.privateKey, config.publicKey, null)
Error:
java.lang.AssertionError
at net.schmizz.sshj.userauth.keyprovider.BaseFileKeyProvider.init(BaseFileKeyProvider.java:62)
at net.schmizz.sshj.userauth.keyprovider.BaseFileKeyProvider.init(BaseFileKeyProvider.java:68)
at net.schmizz.sshj.SSHClient.loadKeys(SSHClient.java:622)
Code that produces error:
package net.schmizz.sshj.userauth.keyprovider;
@Override
public void init(String privateKey, String publicKey) {
assert privateKey != null;
assert publicKey == null; // <------------------------------------ why does it matter if it is null?
resource = new PrivateKeyStringResource(privateKey);
Why is there an assertions for publickey to be null?
The text was updated successfully, but these errors were encountered:
My code:
Error:
Code that produces error:
Why is there an assertions for publickey to be null?
The text was updated successfully, but these errors were encountered: