Disclaimer : I am absolute noob in terms of SSH kind of stuffs.

I maded a SSH key on ConnectBot app on android.I still have password of that key.I got a private and public key.I shared public key with tildes for making accounts.Now they know me by my that key but I want to login by termux. On termux I installed openssh and tried to login it says that authentication failed.

So I just need to backup keys from connected bot and restore on termux and my PC . Will it work ? How to do it? Will making a new pair of keys using same pass and name will work?

I did not got anything regarding this on searches

  • Ghoelian@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    I don’t know connectbot, but it’s probably not putting the keys where openssh is expecting them.

    By default, ssh looks for keys in ~/.ssh/id_rsa(.pub for the public key).

    What I would do is just run ssh-keygen from termux, let it create the .ssh folder and set the correct permissions etc., see where it put that folder, and then just replace the id_rsa files with those from connectbot.

    • remotelove@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      9 months ago

      Just highlighting a small bit for redundancy: Make sure the correct permissions are set in your .ssh folder!