How can I use key from AndroidKeyStore instead of password to authenticate my SSH client connection?
I am unable to login to server using key authentication from my client Android app. I am able to login to server from my app using password authentication. I am able to login to server using key authentication from other clients on my network. protected String sshConnect() { String stdoutString = null; String alias = "KEYPAIRTEST"; KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); keyStore.load(null); KeyStore.Entry entry = keyStore.getEntry(alias, null); PrivateKey privateKey = ((KeyStore.PrivateKeyEntry) entry).getPrivateKey(); PublicKey publicKey = keyStore.getCertificate(alias).
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.