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
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)-
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 email@example.com
# 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 firstname.lastname@example.org
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.