-
I am using libcurl based on libssh2, and in libcurl I called the libssh2_session_method_pref to set the crypto, mac and othere security parameter like:
But when we using tcpdump to capture the package during the sftp connect, the encryption_algorithms_server_to_client show some unexpected algorithm in the Client key exchange Init. I just set the 'aes128-ctr,aes192-ctr,aes256-ctr,aes256-cb' when I called the libssh2_session_method_pref(sshc->ssh_session, LIBSSH2_METHOD_CRYPT_CS, cipher). So How can I remove the '[email protected],aes192-cbc,aes128-cbc,blowfish-cbc,arcfour128,arcfour,cast128-cbc,3des-cbc' for the libssh2 in the encryption_algorithms_server_to_client? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You need to set the server client pref with this key |
Beta Was this translation helpful? Give feedback.
You need to set the server client pref with this key
LIBSSH2_METHOD_CRYPT_SC
.