Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] better terminal pro - ssh-keygen gives segmentation fault

OP gardina

4th September 2014, 12:56 AM   |  #1  
OP Junior Member
Thanks Meter: 1
 
9 posts
Join Date:Joined: Aug 2014
Using the app "better terminal pro" it has an ssh client built in (maybe the free version has too though i'm using pro)..

I can ssh to my ssh server and log in via password.

but i'd like to go in passwordless. For that, I want to create keys.. So, i'm running ssh-keygen. Better terminal has it..

When I run ssh-keygen, it says
Generating public/private rsa key pair
segmentation fault

this happens where I do su beforehand or not..

Any ideas how to resolve that?
5th September 2014, 02:00 AM   |  #2  
OP Junior Member
Thanks Meter: 1
 
9 posts
Join Date:Joined: Aug 2014
Quote:
Originally Posted by gardina

Using the app "better terminal pro" it has an ssh client built in (maybe the free version has too though i'm using pro)..

I can ssh to my ssh server and log in via password.

but i'd like to go in passwordless. For that, I want to create keys.. So, i'm running ssh-keygen. Better terminal has it..

When I run ssh-keygen, it says
Generating public/private rsa key pair
segmentation fault

this happens where I do su beforehand or not..

Any ideas how to resolve that?

Worth noting that ssh -? shows it's dropbear ssh that it uses..

and looking in the directory made by better terminal, dropbear includes an executable called dropbear(which I haven't tried much), and an executable called dropbearkey(which I have tried)

You can use dropbear key to generate the key.. That's instead of ssh-keygen


I understand and have done the steps below and they work..


I don't have enough posts yet to enable me to post a URL, but a URL on journal DOT ulyco DOT com mentions this procedure(which shows the syntax and usage of dropbearkey, amongst other things)-
cd
dropbearkey -t rsa -f ~/.ssh/id_rsa
dropbearkey -y -f ~/.ssh/id_rsa | grep ssh-rsa >~/.ssh/id_rsa.pub
scp ~/.ssh/id_rsa.pub user@example.com:transformer-key
# now you'll need to go to the remote server and put the key in authorized_keys
# once you've set that up, to use it you need to specify the key:
ssh -i ~/.ssh/id_rsa user@example.com


That said.. Another way may be to generate a key on another machine and ensure the right key(s) are on client/server. (private key on client, public key on server in authorized_keys file, and you could put the public key on the client too). That(generating the key elsewhere and placing it on client/server) might be how it's meant to be done as of writing, with juicessh

Anyhow, dropbearkey is very good, it generates the key fine, both the private key, and the public key from the private key.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes