Reply
Thread Tools
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#41
Added v0.3.6 with new UI
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#42
Luverly! I never thought I would find it so useful!

One last suggestion, sorry to be a pain Could the notification LED be switched off when the SSH session ends? The notifications can stay on the list as they are, only the LED to switch off. I'm not even sure if it is possible at all but it would be a nice feature.
__________________
Русский военный корабль, иди нахуй!
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#43
Originally Posted by pichlo View Post
Luverly! I never thought I would find it so useful!

One last suggestion, sorry to be a pain Could the notification LED be switched off when the SSH session ends? The notifications can stay on the list as they are, only the LED to switch off. I'm not even sure if it is possible at all but it would be a nice feature.
this is impossible.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Posts: 84 | Thanked: 146 times | Joined on Feb 2015
#44
Originally Posted by coderus View Post
but really in any case this application should not automatically prevent you from logging to phone. If something broken it will automatically accept connection after timeout. I bet if you will remove application you still cannot login to phone?
I removed your application (which after updating did finally show me the SSH options under Settings -> Security, but I removed it anyway), but I still cannot ssh into my Jolla.

Code:
systemctl status sshd.service
gives me initially (after a fresh boot, and after setting a password for remote access and making sure both developer mode and remote access is on in the settings):

Code:
sshd.service - OpenSSH server daemon
   Loaded: loaded (/lib/systemd/system/ssh.service; disabled)
   Active: inactive (dead)
So I enter:

Code:
devel-su systemctl start sshd.service
using the password I set for the remote connections.

Then I check the status of the ssh service again, and it gives me:

Code:
sshd.service - OpenSSH server daemon
   Loaded: loaded (/lib/systemd/system/ssh.service; disabled)
   Active: active (running) since Ср. 2015-02-11 16:03:39 CET; 4s ago
   Process: 1672 ExecStartPre=/bin/bash -c if [ \( ! -s /etc/ssh/ssh_host_dsa_key \) -a \( ! -s /etc/ssh/ssh_host_dsa_key.pub \) -a \( ! -s /etc/ssh/ssh_host_rsa_key \) -a \( ! -s /etc/ssh/ssh_host_rsa_key.pub \) ]; then /usr/sbin/sshd-hostkeys; fi (code=exited, status=0/SUCCESS)
   Main PID: 1675 (sshd)
        CGroup: /system.slice/sshd.service
                      └─167 /usr/sbin/sshd -D
I try to ssh into Jolla using the password that I know worked for devel-su above (same one I set in the developer mode settings):

Code:
user@device:~$ ssh nemo@192.168.1.157
nemo@192.168.1.157's password: 
Permission denied, please try again.
nemo@192.168.1.157's password: 
Permission denied, please try again.
nemo@192.168.1.157's password: 
Permission denied (publickey,password).
I check on Jolla the status of the ssh service again:

Code:
sshd.service - OpenSSH server daemon
   Loaded: loaded (/lib/systemd/system/ssh.service; disabled)
   Active: failed (Result: exit-code) since Ср. 2015-02-11 16:07:55 CET; 10s ago
   Process: 175 ExecStart=/usr/sbin/sshd -D $SSHD_PARAMETERS (code=exited, status=255)
   Process: 1672 ExecStartPre=/bin/bash -c if [ \( ! -s /etc/ssh/ssh_host_dsa_key \) -a \( ! -s /etc/ssh/ssh_host_dsa_key.pub \) -a \( ! -s /etc/ssh/ssh_host_rsa_key \) -a \( ! -s /etc/ssh/ssh_host_rsa_key.pub \) ]; then /usr/sbin/sshd-hostkeys; fi (code=exited, status=0/SUCCESS)
   Main PID: 1675 (code=exited, status=255)
        CGroup: /system.slice/sshd.service
I have tried to connect via USB, and pretty much the same result:

Code:
user@device:~$ ssh nemo@192.168.2.15
The authenticity of host '192.168.2.15 (192.168.2.15)' can't be established.
RSA key fingerprint is 66:**:**:**:**:**:**:**:**:**:**:**:**:**:**:4e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.2.15' (RSA) to the list of known hosts.
nemo@192.168.2.15's password: 
Permission denied, please try again.
nemo@192.168.2.15's password: 
Permission denied, please try again.
nemo@192.168.2.15's password: 
Permission denied (publickey,password).
I have tried both with a generated password, and with a password I created including something extremely simple like "abc", but it still refuses to work, regardless.

Does anyone have any suggestions?
 
Posts: 1,288 | Thanked: 4,316 times | Joined on Oct 2014
#45
Reinstall openssh I would say
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#46
pkcon install openssh-server
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Posts: 84 | Thanked: 146 times | Joined on Feb 2015
#47
Originally Posted by nieldk View Post
Reinstall openssh I would say
Is there a particular way to do that?

EDIT:
Originally Posted by coderus View Post
pkcon install openssh-server
Thank you.
 
Posts: 84 | Thanked: 146 times | Joined on Feb 2015
#48
Reinstalling openssh worked.

Thank you coderus and nieldk.

I can confirm that the application that is the subject of this thread also now works.

coderus, would it be possible to have the title and contents of "SSH Access confirmation" available in the Russian language if the Jolla device is set to Russian? Maybe other languages as well (I am sure people can help translate the 20 some odd words in the application)?
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#49
Originally Posted by oenone View Post
Reinstalling openssh worked.

Thank you coderus and nieldk.

I can confirm that the application that is the subject of this thread also now works.

coderus, would it be possible to have the title and contents of "SSH Access confirmation" available in the Russian language if the Jolla device is set to Russian? Maybe other languages as well (I am sure people can help translate the 20 some odd words in the application)?
I'm not interested in adding translations support to this, sorry
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, España
#50
Worked first go for me!
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..
 
Reply

Tags
sailfish os, ssh access

Thread Tools

 
Forum Jump


All times are GMT. The time now is 13:14.