| Prev |   1   2   3     4   | Next | Last
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 11:52

Re: Openssh=>5.7 for Sailfish ?
 
Quote:

Originally Posted by nieldk (Post 1411776)
did you run as root ?

You mean, you got no response - output - from running rpm command at all ?

please post any output here :)

Yes i ran it as root:

Code:

[root@localhost ~]# rpm -i --force  /mnt/sdcard/Downloads/openssh-6.5p1-1.armv7hl.rpm
[root@localhost ~]#

There is no output, it just runs and ends without error or something..

After that if i try zypper it ends with :

Code:

zypper install  /mnt/sdcard/Downloads/openssh-6.5p1-1.armv7hl.rpm
Loading repository data...
Reading installed packages...
'openssh = 0:6.5p1-1' is already installed.
No update candidate for 'openssh-6.5p1-1.armv7hl'. The highest available version is already installed.

BUT ssh -V tells me that operating version of openssh is still 5.6, even after reboot:

Quote:

ssh -V
OpenSSH_5.6p1, OpenSSL 1.0.1c-fips 10 May 2012

:)

nieldk 2014-02-09 11:59

Re: Openssh=>5.7 for Sailfish ?
 
please install also
openssh-clients-6.5p1-1.armv7hl.rpm
openssh-server-6.5p1-1.armv7hl.rpm

kollin 2014-02-09 12:26

Re: Openssh=>5.7 for Sailfish ?
 
Quote:

Originally Posted by nieldk (Post 1411783)
please install also
openssh-clients-6.5p1-1.armv7hl.rpm
openssh-server-6.5p1-1.armv7hl.rpm

:D
It seems ok now:

Quote:

ssh -V
OpenSSH_6.5p1, OpenSSL 1.0.1c-fips 10 May 2012

EDIT: Now after i ssh nemo@192.168.0.77 i cant start midnight commander as user! :eek:
mc
-bash: mc: command not found

nieldk 2014-02-09 12:40

Re: Openssh=>5.7 for Sailfish ?
 
Quote:

Originally Posted by kollin (Post 1411789)
:D
It seems ok now:



EDIT: Now after i ssh nemo@192.168.0.77 i cant start midnight commander as user! :eek:
mc
-bash: mc: command not found

seems I have a little update to do :)

add to /etc/profile
export PATH=$PATH:/usr/local/bin

Code:

devel-su
echo "export PATH=$PATH:/usr/local/bin" >> /etc/profile


kollin 2014-02-09 12:53

Re: Openssh=>5.7 for Sailfish ?
 
Quote:

Originally Posted by nieldk (Post 1411794)
seems I have a little update to do :)

add to /etc/profile
export PATH=$PATH:/usr/local/bin

Code:

devel-su
echo "export PATH=$PATH:/usr/local/bin" >> /etc/profile


Now it works.
Thank you!
:D

nieldk 2014-02-09 12:54

Re: Openssh=>5.7 for Sailfish ?
 
How does it work with ECDSA keys you needed ?

kollin 2014-02-09 13:15

Re: Openssh=>5.7 for Sailfish ?
 
Quote:

Originally Posted by nieldk (Post 1411797)
How does it work with ECDSA keys you needed ?

I'll test it later and let you know. I'm going out now for a Sunday afternoon cup of coffee. ;)

nieldk 2014-02-09 13:23

Re: Openssh=>5.7 for Sailfish ?
 
Quote:

Originally Posted by kollin (Post 1411800)
I'll test it later and let you know. I'm going out now for a Sunday afternoon cup of coffee. ;)

Sounds really GOOOOOD! enjoy my friend
(I tested
ssh-keygen -t ecdsa -b 521 -C "$(whoami)@$(hostname)-$(date -I)"

which seems to indicate it works ;)

kollin 2014-02-09 19:52

Re: Openssh=>5.7 for Sailfish ?
 
Quote:

Originally Posted by nieldk (Post 1411803)
Sounds really GOOOOOD! enjoy my friend
(I tested
ssh-keygen -t ecdsa -b 521 -C "$(whoami)@$(hostname)-$(date -I)"

which seems to indicate it works ;)


Strange i can't add my private key:

Code:

[nemo@localhost ~]$ 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 the password is correct! :confused:

EDIT: It works with DSA keys !!!
So i think it's something wrong with ecdsa compatibility may be openssl or some other package that openssh is related to? :confused:

EDIT2: This looks relevant: https://www.martineve.com/2011/07/22...hy-in-openssh/
and it seems that i cant find nothing with this command:
Code:

[root@localhost ~]# find / -iname *ecdsa*
There is a big chance that ecdsa is amputated from openssl and openssh respectively . :(

nieldk 2014-02-09 22:18

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


| Prev |   1   2   3     4   | Next | Last
All times are GMT. The time now is 13:43.

vBulletin® Version 3.8.8