Discussion:
SSH Key Passwords
mobileorg-android+noreply-APn2wQdGggPvIorthT5tXGNm3SN34-aHi_E6es-/
2013-01-18 19:52:29 UTC
Permalink
I'm having issues connecting MobileOrg (0.9.8) to my SSH server and I imagine it's because there's no place to unlock my private key with its password. I get the following error:

Login failed: Failed to find index file with error: com.jcraft.jsch.JSchException: Auth fail

Do you guys support password protected private keys?
mobileorg-android on behalf of Matthew Jones
2013-01-18 19:53:59 UTC
Permalink
Not right now....i am working in a way to deal with it elegantly
On Jan 18, 2013 2:52 PM, <
Post by mobileorg-android+noreply-APn2wQdGggPvIorthT5tXGNm3SN34-aHi_E6es-/
I'm having issues connecting MobileOrg (0.9.8) to my SSH server and I
imagine it's because there's no place to unlock my private key with its
com.jcraft.jsch.JSchException: Auth fail
Do you guys support password protected private keys?
--
You received this message because you are subscribed to the Google Groups
"mobileorg-android" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/mobileorg-android/-/Su3COiO--B4J.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/mobileorg-android?hl=en.
--
You received this message because you are subscribed to the Google Groups "mobileorg-android" group.
To post to this group, send email to mobileorg-android-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to mobileorg-android+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/mobileorg-android?hl=en.
mobileorg-android
2013-01-19 09:19:50 UTC
Permalink
hi,

I would like to use the same setup as you (if I understood yours correctly)

android (with password protect private key) ---- ssh ---> sshd somewhere (needs
public key in .ssh/authorized_keys)

So the unlocking is currently an issue, as I have understood, but being worked
on.

My question is how did you generate your keys on the android phone/tablet and
do you need to let mobile org use the private or the public key to connect (I
would guess it is the private one)? I generated keys using connectbot and that
also works nicely to ssh into my server with a password protected key, but I
cannot find the keys anywhere which connectbot has generated.

thanks a lot for your help

robin
mobileorg-android+noreply-APn2wQdGggPvIorthT5tXGNm3SN34-aHi_E6es-/
2013-01-19 16:41:00 UTC
Permalink
Robin,

I actually generated my rsa keypair on my computer and had to transfer the private key to my phone via sd card. What you'll have to do is go to your key in connectbot and copy the private key (long press on the key you want) to an email. You may be able to download it directly from the email but you may have to transfer it via sd card like I did.

And Matthew, thanks for all the work, I can't wait to see your implementation.

Cheers,
Brian
--
You received this message because you are subscribed to the Google Groups "mobileorg-android" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mobileorg-android/-/YdiVB7zd4KMJ.
To post to this group, send email to mobileorg-android-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to mobileorg-android+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mobileorg-android?hl=en.
mobileorg-android
2013-01-20 04:31:42 UTC
Permalink
hi brian,

thanks for your help! one remaining question: I have understood that you can
set the file permissions with chmod on and the adb shell, so what is the best
place to have one's .ssh directory on the android filesystem if that matters
at all.

cheers

robin
mobileorg-android+noreply-APn2wQdGggPvIorthT5tXGNm3SN34-aHi_E6es-/
2013-01-22 02:11:45 UTC
Permalink
You don't really need a .ssh folder since you just need the private key. I just threw mine on the root of my sdcard.
mobileorg-android
2013-01-22 05:49:12 UTC
Permalink
thanks for your reply. this is what I did in the end.

br

robin

Loading...