Subject: Sftp server public key authentication problem
Date: 2021-05-06 08:05:05
From: Mikiel
Source: sftp-server-public-key-authentication-problem
----------------------------------------------------------------------

Users send me single-line style public rsa keys for their account public key authentications, but they don't work. The only public keys that work for me (RSA Ssh-2) look like this:

    ---- BEGIN SSH2 PUBLIC KEY ----
    Comment: "rsa-key-20210426"
    AAAAB3NzaC1yc2EAAAABJQAAAQEA0ei/S UGUdkaN04WJ0QOg0k/DoY/u bdj 9L
    ...
    SNwZO6AOJgnw7lgFNWbU5eso83qX 97o9tn64lWTAACfaMCVSQ==
    ---- END SSH2 PUBLIC KEY ---- 
    
Anything else faults in the logs showing:
    
    SftpServer: 1 Error - Info: Error: c_ck: Error while processing packet SSH_MSG_USERAUTH_REQUEST.
    ---> System.Security.Cryptography.CryptographicException: Invalid key format.

I'm guessing that the single-line key format is meant for SSH-1 servers, but ComponentPro's is SSH-2. Or, am I missing a configuration setting or something?

----------------------------------------------------------------------

Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand
If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor
who sold you the license and ask for your money back.

Back to ComponentPro Q&A Forum Index