Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [solved by NIELDK] Openssh=>5.7 for Sailfish ?

    Reply
    Page 3 of 6 | Prev |   1     2   3   4     5   | Next | Last
    kollin | # 21 | 2014-02-09, 23:06 | Report

    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).

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by kollin; 2014-02-09 at 23:21.

     
    nieldk | # 22 | 2014-02-10, 07:40 | Report

    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=|
    |             ...+|
    +-----------------+

    Edit | Forward | Quote | Quick Reply | Thanks

     
    kollin | # 23 | 2014-02-10, 08:57 | Report

    [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!


    Edit | Forward | Quote | Quick Reply | Thanks

     
    nieldk | # 24 | 2014-02-10, 09:14 | Report

    perhaps related?
    https://bugs.launchpad.net/ubuntu/+s...ng/+bug/771272

    Edit | Forward | Quote | Quick Reply | Thanks

     
    nieldk | # 25 | 2014-02-10, 09:30 | Report

    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)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    kollin | # 26 | 2014-02-10, 09:48 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by kollin; 2014-02-10 at 09:53.

     
    nieldk | # 27 | 2014-02-10, 09:55 | Report

    just noticed. You are doing this as root.
    Did you copy the keys to /root/.ssh
    or /home/nemo/.ssh. ?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    kollin | # 28 | 2014-02-10, 10:11 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by kollin; 2014-02-10 at 11:21.

     
    nieldk | # 29 | 2014-02-10, 11:30 | Report

    I will make a new version that will be compiled against openssl 1.0.1f, later this evening.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to For This Useful Post:
    kollin

     
    kollin | # 30 | 2014-02-10, 11:35 | Report

    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!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 3 of 6 | Prev |   1     2   3   4     5   | Next | Last
vBulletin® Version 3.8.8
Normal Logout