Show ssh key in logs

This commit is contained in:
Christopher Cookman 2024-06-18 21:57:37 -06:00
parent f8ab65d9ba
commit ab70230a1a
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -16,6 +16,7 @@ const keyPath = path.join(__dirname, '.ssh');
const keyFiles = fs.readdirSync(keyPath);
const keyFile = keyFiles[0];
// read the key file
console.log(`Using key file: ${keyFile}`);
const privateKey = fs.readFileSync(".ssh/" + keyFile, 'utf8');
// FreePBX GraphQL Client