maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [solved by NIELDK] Openssh=>5.7 for Sailfish ? (https://talk.maemo.org/showthread.php?t=92632)

kollin 2014-02-09 23:06

Re: Openssh=>5.7 for Sailfish ?
 
Quote:

Originally Posted by nieldk (Post 1411868)
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).

nieldk 2014-02-10 07:40

Re: Openssh=>5.7 for Sailfish ?
 
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 2014-02-10 08:57

Re: Openssh=>5.7 for Sailfish ?
 
[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!

:)

nieldk 2014-02-10 09:14

Re: Openssh=>5.7 for Sailfish ?
 
perhaps related?
https://bugs.launchpad.net/ubuntu/+s...ng/+bug/771272

nieldk 2014-02-10 09:30

Re: Openssh=>5.7 for Sailfish ?
 
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 2014-02-10 09:48

Re: Openssh=>5.7 for Sailfish ?
 
Quote:

Originally Posted by nieldk (Post 1411936)
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?

nieldk 2014-02-10 09:55

Re: Openssh=>5.7 for Sailfish ?
 
just noticed. You are doing this as root.
Did you copy the keys to /root/.ssh
or /home/nemo/.ssh. ?

kollin 2014-02-10 10:11

Re: Openssh=>5.7 for Sailfish ?
 
Quote:

Originally Posted by nieldk (Post 1411943)
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

:(

nieldk 2014-02-10 11:30

Re: Openssh=>5.7 for Sailfish ?
 
I will make a new version that will be compiled against openssl 1.0.1f, later this evening.

kollin 2014-02-10 11:35

Re: Openssh=>5.7 for Sailfish ?
 
Quote:

Originally Posted by nieldk (Post 1411954)
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! ;)


All times are GMT. The time now is 21:36.

vBulletin® Version 3.8.8