ssh connection refused [answered]
Hi,
my Jolla (Yliaavanlampi) suddenly refuses ssh connection. I already read both closed topics on this issue.
su-devel on, developer mode on. Tried over usb and wifi.
Trying systemctl start sshd.service
fails. systemctl status sshd.service
displays "inactive (dead)" and "failed (Result:start-limit) ... (code=exited, status=255). Difficult to clipboard terminal contents accurately, of course.
Any new hint?
For me it is working good. However
systemctl status sshd
says the following:but it doesn't say anything like
failed ...
.Have you recently disabled and re-enabled remote access? I just figured out that the system forgets the password if you do this, so you have to set it new. I don't know if this is a bug or a feature.
wanderer ( 2015-03-12 11:42:05 +0200 )editDidn't disable remote access, unless OS update did it. Anyway I checked: it's enabled. Just to make sure, I also re-entered nemo plus root passwords ('passwd root'). PC Suite mode is OK. When trying to establish SSH connection, Putty says "Server unexpectedly closed network connection".
objectifnul ( 2015-03-12 14:00:09 +0200 )editNow when I execute
objectifnul ( 2015-03-12 14:21:51 +0200 )editsystemctl start sshd.service
I have no confirmation and no error. SSH connection still refused with a different message: "Network error. Connection refused". Clipboard copy of the response to systemctl status sshd.service:I'm using latest openssh and openssl from openrepos since nieldk compiled them and I had this 'connection refused' issue after ever single firmwareupdate. Everytime openssh and ssl packages were downgraded to old sailfish version 5.6p1 and I couldn't connect anymore.
I then always had to reinstall latest openssh/ssl packages manually to get my connection back.
You can check your version by entering 'ssh -V' in terminal. By the way do you use keys for authenticating the connection? I think the key files are actually the root cause for the connection blocking.
J4ZZ ( 2015-03-12 14:38:05 +0200 )edit@objectifnul: So you have set a root password with
wanderer ( 2015-03-12 15:11:47 +0200 )editpasswd root
? I think this could cause problems, because it is not the standard way for root access in Sailfish OS. By default root has no password set and is not accessible directly (e.g. via su). Root access is gained indirectly viadevel-su
and the Password you set in the developer mode settings. I don't know if this is related to this problems, it's just a guess.