diff --git a/src/main/java/net/lamgc/oracle/sentry/oci/compute/ssh/SshAuthInfoSerializer.java b/src/main/java/net/lamgc/oracle/sentry/oci/compute/ssh/SshAuthInfoSerializer.java index 14f59d5..0509b2a 100644 --- a/src/main/java/net/lamgc/oracle/sentry/oci/compute/ssh/SshAuthInfoSerializer.java +++ b/src/main/java/net/lamgc/oracle/sentry/oci/compute/ssh/SshAuthInfoSerializer.java @@ -49,6 +49,7 @@ public final class SshAuthInfoSerializer implements JsonSerializer, String privateKeyPath = getFieldToStringOrFail(infoObject, "privateKeyPath"); File privateKeyFile = new File(privateKeyPath); publicKeyInfo.setPrivateKeyPath(privateKeyFile); + publicKeyInfo.setKeyPassword(getFieldToStringOrFail(infoObject, "keyPassword")); info = publicKeyInfo; } else { throw new JsonParseException("Unsupported authentication type: " + authType);