SFTP login error

FTP client for Android handsets.
Post Reply
leomeloxp
Posts: 3
Joined: Wed Jan 11, 2012 11:38 am
AntiSpam sum: 8

SFTP login error

Post by leomeloxp »

Hello, I`ve been trying to use andFTP to connect to my computer through SFTP (SCP) using SSH key authentification and I`m getting an error.

To generate the keys, I used ssh-keygen on Arch Linux, then I copied the private key file to my Tablet (ASUS Transformer 3G 16Gb) and asked AndFTP to use it. I tried with Different sets of RSA keys and DSA keys as well... I`m sure that the keys work because I use them with other devices without any problems...

The error I get on AndFTP is:

Publickey authentification failed. java.io.IOException: Invalid PEM structure, '-----BEGIN...' missing.

If anyone can be of help, thanks in advance =D

P.S.: Using password auth method doesn`t look like an ideal way for me.

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

Re: SFTP login error

Post by support »

Key must be in OpenSSH format to work.

leomeloxp
Posts: 3
Joined: Wed Jan 11, 2012 11:38 am
AntiSpam sum: 8

Re: SFTP login error

Post by leomeloxp »

I tried all available formats on opessh and puttygen, without success. Is there any limitation from AndFTP regarding the ssh/sftp protocol or any documentation for setting up my server with AndFTP?

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

Re: SFTP login error

Post by support »

Could you post here a sample SSH key? (or drop an email to support(at)lysesoft(dot)com)?
We will try your key.

leomeloxp
Posts: 3
Joined: Wed Jan 11, 2012 11:38 am
AntiSpam sum: 8

Re: SFTP login error

Post by leomeloxp »

nvm, I managed to get it working...

My errors started occurring when I changed the bits for the keys I wanted to use. I probably messed up with some configurations on the ssh-keygen without noticing.

When I tried simply creating a key with ssh-keygen (without any options at all) it worked. Sorry for bothering you guys, I'll research more about it (maybe try another options for the key) and then I'll post the results here (so you guys can at it as a tutorial or help section after).

Thanks for the support o/

Post Reply