WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to start dropbear from the bootlocal.sh  (Read 2514 times)

Offline bkm

  • Jr. Member
  • **
  • Posts: 72
How to start dropbear from the bootlocal.sh
« on: April 05, 2017, 09:08:33 AM »
Now that I have a nicely working TCL system I want to set it up headless and use the dropbear client.

So, from the tc user prompt I used the command
Code: [Select]
/usr/local/etc/init.d/dropbear start
This started the dropbear client, but during the start process I noticed that it failed to generate the needed security keys and failed with permission denied error. The client still started but I was not very useful so I stopped it and tried again with:
Code: [Select]
sudo /usr/local/etc/init.d/dropbear start
With "sudo" the client started correctly and generated the security keys.

My question is, when I add this line to the bootlocal.sh do I need to include the sudo part of the command or does bootlocal.sh already run as root?


Thanks,

BKM

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: How to start dropbear from the bootlocal.sh
« Reply #1 on: April 05, 2017, 09:23:07 AM »
Bootlocal.sh already runs as root.

Offline bkm

  • Jr. Member
  • **
  • Posts: 72
Re: How to start dropbear from the bootlocal.sh
« Reply #2 on: April 10, 2017, 10:56:20 AM »
Thank you!!    **SOLVED**

BKM