refactor: create private key without passphrase

This commit is contained in:
Levi Yan
2024-10-28 19:03:46 +08:00
parent d79a4a8243
commit 365795fe17

View File

@@ -113,8 +113,6 @@ export default class User {
privateKeyEncoding: {
type: 'pkcs8',
format: 'pem',
cipher: 'aes-256-cbc',
passphrase: 'devstar'
},
});
const publicKeyFingerprint = sshpk.parseKey(publicKey, 'pem').toString('ssh');