Set ENABLE_SSH_PUBLIC_KEY if support for in-memory keys found in libssh.
Read private key, if any.
Prompt for passphrase if needed.