Closed jamesmacwhite closed 8 years ago
OE never supported "custom ssh ports", you should absolutely not touch that file.
Would it be "supported" if the SSH port was able to be changed in the OE settings addon?
I'm closing this ticket due to elapsed time and because using private SSH keys is a better way to provide security to an OE system than changing port numbers (security through obscurity) - we have no plans to allow changing of the port. NB: You can use /storage/.config/autostart.sh to sed appropriate values at boot time - autostart.sh is run early before connman has started. Thanks.
While this isn't strictly supported in the UI, if you manually modify the
/storage/.cache/services/sshd.conf
file, you can pass an additional parameter to theSSH_ARGS
variable such as-p 52245
which would run the SSH daemon on the non standard port defined. Upon rebooting however, this parameter will have been removed but other parameters such asPasswordAuthentication
will remain.I'm assuming its because the OpenELEC settings addons modifies this file on startup and because it has no port value in the actual OpenELEC settings UI, it just gets wiped out.
Currently I set
chattr +i
on thesshd.conf
file to prevent it being written to, obviously this breaks the settings addons from writing to it.While a specific user case, it would be nice if the settings addon didn't wipe out such arguments or if the Settings UI had a option to change the port.