Menu

#27 Please fix / extend SFTP pubkey login functionality

open
nobody
None
1
2019-11-29
2019-11-28
masscream
No

Hi, I've tried almost everything to get this feature working, however it does not. I've converted my key via puttygen in win / openssl in linux, with password phrase and without. They all begin with "-----BEGIN RSA PRIVATE KEY-----". All of my converted keys get accepted when connecting via openssh client but never with GC. I copied the key to the right destination. I changed the name to the hostname (with alternative port included). All I get is the standard dialogue (Server/Path/Username/Password), whether I fill in my user/pass or not does not matter, then I get another loginscreen, this time with sftp address, key fingerprint, username and password again and this screen repeats again and again, not accepting key passphrase, not accepting anything just keeps itself repeating again. When I check the openssh log it just says "Closed due to user request. [preauth]" which I would guess means, the client does not even offer the key to the server for whatever reason. Please, please fix this, all android apps I've seen nowadays using ssh protocol have user friendly GUI options to import the key and support all standard formats, here I had to copy, rename and convert everything myself to get no result. GC is a great project, please don't make users leave....

Discussion

  • zc2

    zc2 - 2019-11-28

    Hi,
    What version of the SFTP plugin are you using? The latest beta version (1.14.7b4) does not look in the /sdcard/.GhostCommander/keys folder anymore, but rather in an app's internal folder. For the user's convinience, there is a keys manager which helps you to transfer your keys there.
    When you name a key file, do not include the port number, only the host name.
    Also, please be aware, that the plugin supports only a limited set of KEX algorithms, which are:
    "diffie-hellman-group-exchange-sha1",
    "diffie-hellman-group14-sha1",
    "diffie-hellman-group1-sha1"
    What is the server version you are trying to connect to? Can you send me a copy of your sshd_config file? Also, it would help if you send me a logcat and the exact steps you do to prepare your key pair.
    Email me to ghost.sq2@gmail.com

     
  • masscream

    masscream - 2019-11-29

    Wow, my apologies, this time I fooled myself. A few rounds back when I had the wrong key format I thought it is in the address, so I added the port number into the key's filename and the output changed. Since then it was throwing me the second login screen so I thought it was a good step and let it there. Now I removed it and voila I'm connected. Thank you!

    btw. I was looking for the new version as well, but on Gplay and F-droid the newest is 1.14.6

     
    • zc2

      zc2 - 2019-11-29

      Either apply for be a beta tester at Gplay, or download a newest beta from SourceForge (both are not compatible with the app from F-droid).

       

Log in to post a comment.