Skip to content

ASP.NET Core application to halt a local linux server remotely

License

Notifications You must be signed in to change notification settings

vincentg/RemoteShutdown

Repository files navigation

RemoteShutdown

ASP.NET Core application to halt a local linux server remotely

Setup:

  • Change in appsetting.json the HTTP Certificate and Key path
  • Add to sudoers file permission for the app user to halt system shutdownapp ALL=(ALL) NOPASSWD:/usr/sbin/halt

How to call remotely curl -H 'XAPIKEY:<APIKEYIN User Secrets>' https://<address>:<port>/shutdown

About

ASP.NET Core application to halt a local linux server remotely

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages