Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: loppanjo on April 09, 2016, 12:04:17 PM

Title: Edit sshd_config
Post by: loppanjo on April 09, 2016, 12:04:17 PM
I'm trying to edit the 'sshd_config' file in '/usr/local/etc/ssh/' to remove the possibility to
login by password.

I want to edit the following
-Protocol 2
-PasswordAuthentication no
-UsePAM no

But when I save and backup the file(I have added the it to '.filetool.lst') and reboot my changes are gone. I've read that this file is created by openSSH start script and someone managed to edit a few options by commandline overriding in bootlocal.sh, I tried that to but no luck :(

Is there an easy way to edit this config file and keep it after reboots?
Title: Re: Edit sshd_config
Post by: bmarkus on April 10, 2016, 12:46:35 AM
Thanks for reporting, it is a buggy startup script. Will fix it.

BTW, is it piCore 6 or 7 what you are using?
Title: Re: Edit sshd_config
Post by: loppanjo on April 10, 2016, 01:47:36 AM
piCore 7.0

When do you think a fix will be available?
Title: Re: Edit sshd_config
Post by: bmarkus on April 10, 2016, 05:34:04 AM
Done, 7.x armv6/armv7 repo updated.

Update your system.
Title: Re: Edit sshd_config
Post by: loppanjo on April 10, 2016, 06:34:32 AM
A noob questoin but im new to piCore.
How do I update my system? tce-update?
Title: Re: Edit sshd_config
Post by: bmarkus on April 10, 2016, 07:11:20 AM
How do I update my system? tce-update?

Yes

And don't forget to add the sshd config file to the backup file list before doing backup.