Reply
Thread Tools
kollin's Avatar
Posts: 193 | Thanked: 203 times | Joined on Jun 2012 @ Sofia, Bulgaria
#21
Originally Posted by nieldk View Post
It has some minor issues that I need to correct, but you can try openssl 1.0.1f from my openrepos. I successfully created the ecdsa keys with that
The only problem now is that i'm unable to add my ecdsa keys too ssh (ssh-add). I don't know how to do that with openssl (i installed it from your openrepos).

EDIT: During configuration phase of openssh (on my gentoo system)i can see this line:
Code:
checking whether OpenSSL has complete ECC support... yes
But i don't know how Jolla RPMs are built(with or without ECC support).
__________________
Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment.
How to tell Heretics from Catholics?Papal legate Arnaud Amalric answers :Caedite eos. Novit enim Dominus qui sunt eius.(Kill them all, the Lord will recognise His own.)
“Get thee to Hell, where Asmodeus himself may suckle upon your diseased teat!”
Barnabas Collins

Last edited by kollin; 2014-02-09 at 23:21.
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#22
I dont understand Did it work for you ?

Code:
[nemo@localhost ~]$ ssh-keygen -t ecdsa -b 521
Generating public/private ecdsa key pair.
Enter file in which to save the key (/home/nemo/.ssh/id_ecdsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/nemo/.ssh/id_ecdsa.
Your public key has been saved in /home/nemo/.ssh/id_ecdsa.pub.
The key fingerprint is:
27:5e:d5:74:ae:fc:1f:87:c9:58:ff:e4:6a:25:12:34 nemo@localhost
The key's randomart image is:
+--[ECDSA  521]---+
|              . .|
|            Eo o |
|           .... .|
|           ... . |
|        S o  .+  |
|       . +  .+.=.|
|        .   ..++=|
|              .o=|
|             ...+|
+-----------------+
 
kollin's Avatar
Posts: 193 | Thanked: 203 times | Joined on Jun 2012 @ Sofia, Bulgaria
#23
[QUOTE=nieldk;1411913]I dont understand Did it work for you ?

No it didn't!
I can't add my existing ecdsa keys to my jolla ssh.

Code:
ssh-add ~/.ssh/id_ecdsa
Enter passphrase for /home/nemo/.ssh/id_ecdsa: 
Bad passphrase, try again for /home/nemo/.ssh/id_ecdsa: 
Bad passphrase, try again for /home/nemo/.ssh/id_ecdsa:
and i'm sure my password is correct!

__________________
Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment.
How to tell Heretics from Catholics?Papal legate Arnaud Amalric answers :Caedite eos. Novit enim Dominus qui sunt eius.(Kill them all, the Lord will recognise His own.)
“Get thee to Hell, where Asmodeus himself may suckle upon your diseased teat!”
Barnabas Collins
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#24
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#25
just tested with a key generated on my debian box, copied to Jolla

Code:
[nemo@localhost .ssh]$ eval `ssh-agent -s`
Agent pid 31414
[nemo@localhost .ssh]$ ssh-add id_ecdsa
Enter passphrase for id_ecdsa: 
Identity added: id_ecdsa (id_ecdsa)
[nemo@localhost .ssh]$
(the eval `ssh-agent -s` I needed since it was apparently not started)
 
kollin's Avatar
Posts: 193 | Thanked: 203 times | Joined on Jun 2012 @ Sofia, Bulgaria
#26
Originally Posted by nieldk View Post
just tested with a key generated on my debian box, copied to Jolla

Code:
[nemo@localhost .ssh]$ eval `ssh-agent -s`
Agent pid 31414
[nemo@localhost .ssh]$ ssh-add id_ecdsa
Enter passphrase for id_ecdsa: 
Identity added: id_ecdsa (id_ecdsa)
[nemo@localhost .ssh]$
(the eval `ssh-agent -s` I needed since it was apparently not started)
Does not work , i don't know why!

Code:
eval `ssh-agent -s`
Agent pid 7581
[root@localhost ~]# ssh-add
Enter passphrase for /root/.ssh/id_dsa: 
Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa)
[root@localhost ~]# ssh-add ~/.ssh/id_ecdsa 
Enter passphrase for /root/.ssh/id_ecdsa: 
Bad passphrase, try again for /root/.ssh/id_ecdsa: 
Bad passphrase, try again for /root/.ssh/id_ecdsa: 
Bad passphrase, try again for /root/.ssh/id_ecdsa:


EDIT: What are the file permissions of your ecdsa key and ./ssh directory on your jolla?
__________________
Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment.
How to tell Heretics from Catholics?Papal legate Arnaud Amalric answers :Caedite eos. Novit enim Dominus qui sunt eius.(Kill them all, the Lord will recognise His own.)
“Get thee to Hell, where Asmodeus himself may suckle upon your diseased teat!”
Barnabas Collins

Last edited by kollin; 2014-02-10 at 09:53.
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#27
just noticed. You are doing this as root.
Did you copy the keys to /root/.ssh
or /home/nemo/.ssh. ?
 
kollin's Avatar
Posts: 193 | Thanked: 203 times | Joined on Jun 2012 @ Sofia, Bulgaria
#28
Originally Posted by nieldk View Post
just noticed. You are doing this as root.
Did you copy the keys to /root/.ssh
or /home/nemo/.ssh. ?
Both

10chars

A-ha !
The output from ssh-keygen on my jolla:

Code:
[nemo@localhost ~]$ ssh-keygen -t ecdsa -b 521 -f /home/nemo/.ssh/exp/exp_ecdsa
unknown key type ecdsa
something is not right with ssh installation on my jolla.

EDIT2: I manualy copied ssh-add and ssh-keygen (from your rpms) - still no go:
Code:
ssh nemo@192.168.0.77
nemo@192.168.0.77's password: 
Last login: Mon Feb 10 11:37:17 2014 from 192.168.0.1
NOTICE: Env value ignored QT_GSTREAMER_CAMERABIN_FLAGS=15
,---
| SailfishOS 1.0.3.8 (Naamankajärvi) (armv7hl)
'---
Agent pid 12990
Enter passphrase for /home/nemo/.ssh/id_dsa: 
Identity added: /home/nemo/.ssh/id_dsa (/home/nemo/.ssh/id_dsa)
[nemo@localhost ~]$ ssh-add /home/nemo/.ssh/id_ecdsa
Enter passphrase for /home/nemo/.ssh/id_ecdsa: 
Bad passphrase, try again for /home/nemo/.ssh/id_ecdsa: 
Bad passphrase, try again for /home/nemo/.ssh/id_ecdsa: 
Bad passphrase, try again for /home/nemo/.ssh/id_ecdsa: 

[nemo@localhost ~]$ ssh-keygen -v -t ecdsa -b 521 -f /home/nemo/.ssh/exp/ 
unknown key type ecdsa
__________________
Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment.
How to tell Heretics from Catholics?Papal legate Arnaud Amalric answers :Caedite eos. Novit enim Dominus qui sunt eius.(Kill them all, the Lord will recognise His own.)
“Get thee to Hell, where Asmodeus himself may suckle upon your diseased teat!”
Barnabas Collins

Last edited by kollin; 2014-02-10 at 11:21.
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#29
I will make a new version that will be compiled against openssl 1.0.1f, later this evening.
 

The Following User Says Thank You to For This Useful Post:
kollin's Avatar
Posts: 193 | Thanked: 203 times | Joined on Jun 2012 @ Sofia, Bulgaria
#30
Originally Posted by nieldk View Post
I will make a new version that will be compiled against openssl 1.0.1f, later this evening.
Thank you! I hope it'll works!
__________________
Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment.
How to tell Heretics from Catholics?Papal legate Arnaud Amalric answers :Caedite eos. Novit enim Dominus qui sunt eius.(Kill them all, the Lord will recognise His own.)
“Get thee to Hell, where Asmodeus himself may suckle upon your diseased teat!”
Barnabas Collins
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:37.