this post was submitted on 02 Feb 2024
14 points (76.9% liked)

Open Source

30282 readers
465 users here now

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

Useful Links

Rules

Related Communities

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

founded 5 years ago
MODERATORS
 

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 comment's thread
view the rest of the comments
[โ€“] [email protected] 3 points 7 months ago (1 children)

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.

[โ€“] [email protected] 8 points 7 months ago

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