jvinet / knock

A port-knocking daemon
http://www.zeroflux.org/projects/knock
GNU General Public License v2.0
549 stars 113 forks source link

Hello!Can I use the command "systemctl start sshd" to "start_command=" in the config file? #48

Closed DoubeGe closed 3 years ago

DoubeGe commented 7 years ago

Hello!Can I use the command "systemctl start sshd" to "start_command=" in the config file? I have done it.and use list command in client: knock ip 7000 knock ip 8000 knock ip 9000 but it wasn't seccessed to make the server's sshd software runing. How I should do to make it take effect?

DoubeGe commented 7 years ago

I have done it again.And it take effect.Thanks for your project.

jvinet commented 7 years ago

Yep, should work. Try passing your entire port-knock sequence to a single 'knock' command:

$ knock ip 7000 8000 9000

On Thu, Oct 27, 2016, at 03:17 AM, DoubeGe wrote:

Hello!Can I use the command "systemctl start sshd" to "start_command=" in the config file? I have done it.and use list command in client: knock ip 7000 knock ip 8000 knock ip 9000 but it wasn't seccessed to make the server's sshd software runing. How I should do to make it take effect? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub[1], or mute the thread[2].

Links:

  1. https://github.com/jvinet/knock/issues/48
  2. https://github.com/notifications/unsubscribe-auth/AAFIa2Mnc0fUGc9cOHEC_K-P8A7qCSdMks5q4HpJgaJpZM4KiLTe
ibaldonl commented 4 years ago

Maybe this issue should be closed.