WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Edit sshd_config  (Read 2200 times)

Offline loppanjo

  • Newbie
  • *
  • Posts: 18
Edit sshd_config
« on: April 09, 2016, 03: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?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Edit sshd_config
« Reply #1 on: April 10, 2016, 03: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?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline loppanjo

  • Newbie
  • *
  • Posts: 18
Re: Edit sshd_config
« Reply #2 on: April 10, 2016, 04:47:36 AM »
piCore 7.0

When do you think a fix will be available?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Edit sshd_config
« Reply #3 on: April 10, 2016, 08:34:04 AM »
Done, 7.x armv6/armv7 repo updated.

Update your system.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline loppanjo

  • Newbie
  • *
  • Posts: 18
Re: Edit sshd_config
« Reply #4 on: April 10, 2016, 09:34:32 AM »
A noob questoin but im new to piCore.
How do I update my system? tce-update?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Edit sshd_config
« Reply #5 on: April 10, 2016, 10: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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."