SFTP Key Authentication

FTP client for Android handsets.
hotaru
Posts: 5
Joined: Fri Nov 06, 2009 2:15 am
AntiSpam sum: 8

Re: SFTP Key Authentication

Post by hotaru »

is password auth disabled on your server?

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

Re: SFTP Key Authentication

Post by support »

No, but I'm sure the key is used.

hotaru
Posts: 5
Joined: Fri Nov 06, 2009 2:15 am
AntiSpam sum: 8

Re: SFTP Key Authentication

Post by hotaru »

how do you know? has anyone gotten this app to work with a server that has password auth disabled?
you do know that having password auth enabled can allow people to brute-force your password, right?

brock
Posts: 2
Joined: Wed Nov 11, 2009 5:33 pm
AntiSpam sum: 8

Re: SFTP Key Authentication

Post by brock »

Yes... I finally got it to work by generating the key on my laptop using ssh-keygen instead of trying to use the one generated on the device.

DSA key (no password), PasswordAuthentication disabled on server.

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

Re: SFTP Key Authentication

Post by support »

Great !
I think the problem might come from key file format. If AndFTP is not able to read key then it switches back to login/password authentication.

hotaru
Posts: 5
Joined: Fri Nov 06, 2009 2:15 am
AntiSpam sum: 8

Re: SFTP Key Authentication

Post by hotaru »

@brock: what command line options did you use? the keys i've tried were all generated by ssh-keygen except for one, and i haven't been able to get andftp to use any of them.

guirenault
Posts: 3
Joined: Sun Dec 20, 2009 9:59 am
AntiSpam sum: 8

Re: SFTP Key Authentication

Post by guirenault »

hotaru wrote:@brock: what command line options did you use? the keys i've tried were all generated by ssh-keygen except for one, and i haven't been able to get andftp to use any of them.
I'm also interesting by the solution at these problem ...
My DSA key's (with password to protect them) generated by puttygen or ssh-keygen doesn't work ...

Thanks,

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

Re: SFTP Key Authentication

Post by support »

FYI, I've generated my DSA key with tool available in CPanel and it worked fine.

guirenault
Posts: 3
Joined: Sun Dec 20, 2009 9:59 am
AntiSpam sum: 8

Re: SFTP Key Authentication

Post by guirenault »

Ok thanks ... could you give us the line before and after your key ?
Ex : -----BEGIN DSA PRIVATE KEY----- and -----END DSA PRIVATE KEY-----

Because I use Webmin for my server and not CPanel and I use puttygen to generate my key ... like a lot of people I think ...

So I think that it's perhaps a problem of line before and after the file where the key is ...

Thanks ...

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

Re: SFTP Key Authentication

Post by support »

My DSA key looks like:

-----BEGIN DSA PRIVATE KEY-----
MIIBvAIBAAKBgQC0fQXAPWcwMN4raub+NMHtjYonr4m71MXqTxOX+583yqv8PD62
...
...
US0ApsKRX1szZ+dGqgX2Lg==
-----END DSA PRIVATE KEY-----

Post Reply