ssh key based authentication
Posted: Tue Dec 17, 2024 4:41 pm
using NANO and 3.5.0. It seems that SSH key-based authentication is not yet supported
In my research on SSH so far, apart from password authentication, I understand that an SSH server can authenticate a client using the client’s public key installed on the server.
I reviewed the example ssh/SshServerUserKey, but it appears that this is not designed for key-based authentication. Please correct me if I’m wrong. This example seems more focused on enabling users to upload their server host private keys to the application, which are then used during the SSH handshake.
In contrast, the ssh/sshServerUserAuth example allows adding a username and password, but does not seem to support key authentication. The UserAuthManager::CheckUserAuth() method only checks for passwords and does not provide a mechanism for handling key-based authentication, such as creating a challenge using the client’s public key when the authentication type is eAuthTypeKey.
In my research on SSH so far, apart from password authentication, I understand that an SSH server can authenticate a client using the client’s public key installed on the server.
I reviewed the example ssh/SshServerUserKey, but it appears that this is not designed for key-based authentication. Please correct me if I’m wrong. This example seems more focused on enabling users to upload their server host private keys to the application, which are then used during the SSH handshake.
In contrast, the ssh/sshServerUserAuth example allows adding a username and password, but does not seem to support key authentication. The UserAuthManager::CheckUserAuth() method only checks for passwords and does not provide a mechanism for handling key-based authentication, such as creating a challenge using the client’s public key when the authentication type is eAuthTypeKey.