enigma-bbs icon indicating copy to clipboard operation
enigma-bbs copied to clipboard

Generate SSH cert with oputil

Open cognitivegears opened this issue 2 years ago • 1 comments

Now that we have upgraded the ssh2 library, it supports the ability to generate ssh certificates. We should take advantage of this to facilitate ssh setup without any external tools needed. Some thoughts below:

  • Create a new core/oputil/oputil_ssh.js
  • allow creation of the key with a random password or manual entered password. Add the password to the config.hjson.
  • make sure the private key is saved with the minimum file permissions needed.
  • update documentation (current description of running ssh-keygen etc should not be removed but changed to a secondary option.

cognitivegears avatar Oct 12 '23 03:10 cognitivegears

This could probably live under oputil config, e.g. oputil.js config ssh-key [options]

NuSkooler avatar Oct 12 '23 03:10 NuSkooler