ascertsimonm opened a new issue, #297: URL: https://github.com/apache/mina-sshd/issues/297
### Version 2.9.2 ### Bug description When attempting to run the SSH client with that private key file that is protected with a password the Mina SSH client doesn't make the connection. The client was run using the command `java -jar MinaSshClient-2.9.2.jar -i K:\id_rsa [email protected]` ### Actual behavior The client seems to fail to load the key resource with the following warning `WARNING: org.apache.sshd.cli.client.SshCl: Failed (FailedLoginException) to load key resource=K:\id_rsa: No password provider for encrypted key in K:\id_rsa` the connection subsequently fails with a "No more authentication methods available" ### Expected behavior The client should prompt for a password for the key file or have another command line parameter to specify it. ### Relevant log output _No response_ ### Other information I did a bit of debugging on this and for whatever reason the prompt for the password for the private key file isn't being triggered by the code in the _SshClientCliSupport_, _setupSessionIdentities_ method. Whether or not it's the correct solution what I did in my own code is I used the setPasswordFinder method on the FileKeyPairProvider with the same code segment as for the client `setFilePasswordProvider` and it seemed to work. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
