Archived
1
0

Remove SSH server

Closes #1502
This commit is contained in:
Anmol Sethi
2020-04-27 09:27:45 -04:00
parent 8608ae2f08
commit d0d5461a67
7 changed files with 1 additions and 473 deletions

View File

@ -44,12 +44,6 @@ export const generateCertificate = async (): Promise<{ cert: string; certKey: st
return paths
}
export const generateSshHostKey = async (): Promise<string> => {
// Just reuse the SSL cert as the SSH host key
const { certKey } = await generateCertificate()
return certKey
}
export const generatePassword = async (length = 24): Promise<string> => {
const buffer = Buffer.alloc(Math.ceil(length / 2))
await util.promisify(crypto.randomFill)(buffer)