May 17, 201214 yr hi, so I've enabled SSHD and want to do some obvious tweaks, i find /boot/custom/etc/ssh and edit sshd_config but after reboot, I still find that /etc/ssh/sshd_config lacks my mods. Is there somewhere else I should make my changes?
May 17, 201214 yr hi, so I've enabled SSHD and want to do some obvious tweaks, i find /boot/custom/etc/ssh and edit sshd_config but after reboot, I still find that /etc/ssh/sshd_config lacks my mods. Is there somewhere else I should make my changes? You need to replace the edited file EVERY time you reboot, as the file you edited existed only in RAM, and is re-created in its stock form every time you re-install sshd when you reboot. After editing the file, copy it to your flash drive. cp /etc/ssh/sshd_config /boot/config/sshd_config At the end of your config/go script, add a line to copy the edited sshd_config file back to /etc/ssh/sshd_config cp /boot/config/sshd_config /etc/ssh/sshd_config (then re-start the sshd if it was already started) Joe L.
May 17, 201214 yr so the contents of /boot/custom/etc/ssh isn't automagically copied on boot? why would it? unRAID knows nothing about it. As far as I know, the only files automagically copied in the stock unRAID are the config/passwd, config/smbpasswd, and config/shadow files.
May 20, 201214 yr Author err.. I ask because the various key files are! Found that this is done in the addon install script, should this be in a different (addons) forum? Anyway, thanks for the help, I have it working now - done the same thing with blockhosts and it's config and hosts.[ad]* files. I'm a more secure (happy) bunny now
Archived
This topic is now archived and is closed to further replies.