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

You are viewing a single thread.
View all comments
3 points

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.

permalink
report
reply
8 points

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

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply

Open Source

!opensource@lemmy.ml

Create post

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

  • Posts must be relevant to the open source ideology
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

Community stats

  • 5.6K

    Monthly active users

  • 1.7K

    Posts

  • 28K

    Comments