Public key

FTP client for Android handsets.
Post Reply
alfa
Posts: 3
Joined: Wed Jun 22, 2011 7:42 pm
AntiSpam sum: 8

Public key

Post by alfa »

Hello ,

I just downloaded andftp from your web trying it on Desire HD.
I want to just use public key no password. But when i try to connect it asks me for password.
I selected the privatekey in advanced section under ssh Key. Am i doing something wrong ?
Because i can use this server from windows client, without password just with private key

support
Posts: 853
Joined: Sun Apr 20, 2008 4:40 pm

Re: Public key

Post by support »

It may be because the SSH key format is not Open-SSH compliant. So AndFTP to to fall back to regular login/password. Could you double check key file format?

alfa
Posts: 3
Joined: Wed Jun 22, 2011 7:42 pm
AntiSpam sum: 8

Re: Public key

Post by alfa »

I have created the file using puttygen SSH2-RSA mode.

alfa
Posts: 3
Joined: Wed Jun 22, 2011 7:42 pm
AntiSpam sum: 8

Re: Public key

Post by alfa »

Is ssh2 not compatable ?

juanmasg
Posts: 1
Joined: Thu Jun 23, 2011 4:51 pm
AntiSpam sum: 8

Re: Public key

Post by juanmasg »

Same problem here. I'm using a DSA key generated with ssh-keygen.
This is the debug output of the ssh server:

Code: Select all

debug1: trying public key file /home/XXX/.ssh/authorized_keys
debug1: fd 4 clearing O_NONBLOCK
debug3: secure_filename: checking '/home/XXX/.ssh'
debug3: secure_filename: checking '/home/XXX'
debug3: secure_filename: terminating check at '/home/XXX'
debug1: matching key found: file /home/XXX/.ssh/authorized_keys, line 1
Found matching DSA key: 1b:42:03:0e:9d:4d:c4:a0:f7:62:0e:6a:d0:aa:93:a2
debug1: restore_uid: 0/0
debug3: mm_answer_keyallowed: key 0x80be940 is allowed
debug3: mm_request_send entering: type 22
debug3: mm_request_receive entering
debug2: userauth_pubkey: authenticated 0 pkalg ssh-dss
Postponed publickey for jms from 10.15.XX.XXX port 57387 ssh2
Received disconnect from 10.15.XX.XXX: 3: com.jcraft.jsch.w: Auth fail
The server agrees the key, but AndFTP doesn't seem to realize.

I've used the same key file with maany other programs and it always worked, but it seems that AndFTP doesn't like it... :-/

support
Posts: 853
Joined: Sun Apr 20, 2008 4:40 pm

Re: Public key

Post by support »

Could you send it with a testing FTP account to support(at)lysesoft(dot)com?

Post Reply