Where do ssh settings have to be changed?
As a Linux newbie, I might have a wrong understanding of the settings concept. It is clear that system-wide settings override settings for single users. On the other side, those system-wide configurations obviously aren't enough to ensure everything works as it should.
That's why I encountered some problems with configuring ssh connections.
Changing the port in the sshd_config file has no effect. One also (or: instead?) has to edit sshd.socket. https://together.jolla.com/question/4363/how-to-configure-sshd-to-listen-on-a-different-port/?answer=4539#post-id-4539
In addition, using ssh keys, logging in via ssh is possible even if SSH connection is switched off in settings -> developer mode. This seems to be a bit strange. Normally, I would expect "off" means "completely off" and not only "off for one log-in method". Is there any possibility to disable it completely? Does it have to be disabled anywhere else for the changes to take effect?
Therefore I wonder whether Sailfish respects the "ListenAddress" entry in the sshd_config file.
Are there any other ssh settings that need to be modified in a different file although they are present in sshd_config?
Did you change your system by e.g. installing openssh from openrepos?
lakutalo ( 2015-12-28 15:32:00 +0200 )editNo, I didn't. I have only installed apps from Jolla Store.
Laura ( 2015-12-28 15:50:26 +0200 )editNot exactly what you want, but a plausible workaround for increased security: https://openrepos.net/content/coderus/ssh-access-confirmation
objectifnul ( 2015-12-28 15:54:31 +0200 )editThanks for your suggestion. This app has already been recommended to me twice. I'm just not yet convinced of installing apps from anywhere else than Jolla Store, so I hope it'll be available there soon.
Laura ( 2016-01-02 03:08:32 +0200 )editI'm linux user for many years and I'm very frustrated with how jolla handles ssh. I changed the port of my ssh and changed settings to require ssh key to connect. (edited /etc/ssh/sshd_config as always). Then proceeded to switch off ssh (systemctl stop sshd) but: 1. ssh is still on no matter what. 2. when enablig ssh via Settings app, I can ssh via port 22 which should not take place since the config specifies different port 3. Regardless of remote connection being swiched off via settings app I can connect to the phone via specified port in config file
WTF?! Why is it like that. Why I cant just setup /etc/ssh the way I've been doing on every machine/server and have it respected by the system?! Any thoughts on that guys?
muppeth ( 2016-01-21 11:46:42 +0200 )edit