#295: latest libssh2 library with support 64 bit architecture fails to authenticate with public key (RSA) libssh2_userauth_publickey_fromfile ---------------------+------------------- Reporter: ios3 | Owner: Type: defect | Status: new Priority: normal | Milestone: 1.4.3 Component: API | Version: 1.4.2 Resolution: | Keywords: Blocked By: | Blocks: ---------------------+-------------------
Comment (by ios3): We have developed one iOS application to ssh using libssh2 library. There is all things working fine with libssh2 version 1.4.2, But I required to use 1.4.3 version to support arm64 bit architecture. I have update version and now using with 1.4.3 all things is working fine except key authentication. I have made one RSA key to ssh with my server, I have copied public key in authorized key file so that we can connect with that pc/server. Using this key when I try to connect/ssh it returns me error -18"LIBSSH2_ERROR_AUTHENTICATION_FAILED". When I tried to ssh with same key and same server it allows me without any issue using version 1.4.2 (older one). I don't what's happen. USing this method with para to check authenticate status libssh2_userauth_publickey_fromfile(session, username, pubkey,privatekey ,password); Below is detail how I m gettig para const char *pubkey= [_publicKey cStringUsingEncoding:NSUTF8StringEncoding]; const char *privatekey= [_privateKey cStringUsingEncoding:NSUTF8StringEncoding]; password=NULL const char* username = [username1 cStringUsingEncoding:NSUTF8StringEncoding]; const char* password = [passWd cStringUsingEncoding:NSUTF8StringEncoding]; Please let me know if any thing wrong or missing here. FOr key I haven't use any password while generate it. Let me know if any more info require. Thanks. -- Ticket URL: <https://trac.libssh2.org/ticket/295#comment:3> libssh2 <https://trac.libssh2.org/> C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel