Does anybody know a way of either converting (on android) a putty key to something I can use in ConnectBot, or a good android SSH app that can use Putty keys natively?

I am away from home without my laptop, which I would usually use. I only have my android phone with me.

A few months ago I tried creating RSA key pairs to use with Putty on my laptop and ConnectBot but for some reason I just could not crack it so gave up. I also used puttygen to create an RSA key but it would not work on ConnectBot

  • Nate@programming.dev
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    11 months ago

    Install termux [edit: grab from f-droid or their website, their play store version has been out of date for some time and repos likely wont work on it] on your phone and run pkg install x11-repo followed by pkg install putty-tools which should put a copy of puttygen on your phone. Open your file manager and “Termux” should appear like a USB drive (in Google files it’s under “other storage” at the bottom of the home screen), copy your key file there and Termux will be able to access it. puttygen keyfile.ppk -O private-openssh -o id_rsa Should let you convert to OpenSSH format and connect to trusted computers. You can also install OpenSSH in Termux to use it as an ssh client

    It also looks like you can install putty in Termux as well, if that’s more convenient for you

    nvm, it needs an x11 server, you’re likely better off with the aforementioned method

    • brewery@feddit.ukOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      11 months ago

      You are amazing, thank you so much! It all worked apart from the last one, which said it needs an output file specified so added -o after a quick search. I really appreciate the quick response to, I got in very quickly but only just managed to respond here.

      • Nate@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        11 months ago

        Glad to hear it worked! I edited the comment in case anybody stumbles across it with the same issue