Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Daemon/SSHDaemon

Index

Functions

Functions

createSSHDaemon

  • createSSHDaemon(runJob: RunJob, hostKeys: ServerConfig["hostKeys"]): net.Server
  • Create a Junknet daemon implemented over SSH.

    remarks
    • It's important to listen for the 'error' event, as the default behavior is to stop serving.
    • SSH keys may be generated via ssh-keygen from OpenSSH.

    Parameters

    • runJob: RunJob

      A job-running strategy, invoked when a client requests a job.

    • hostKeys: ServerConfig["hostKeys"]

      Private SSH keys to authenticate this daemon to clients.

    Returns net.Server

    The daemon as a Server.

Generated using TypeDoc