Show ssh key in logs
This commit is contained in:
parent
f8ab65d9ba
commit
ab70230a1a
1
index.js
1
index.js
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue