feat: add ssh key comment for auto generated key

This commit is contained in:
UndefinedPony
2025-01-06 12:09:15 +01:00
parent d0a5427c66
commit 76c6d02566

View File

@@ -29,7 +29,7 @@ export const setupLocalServerSSHKey = async () => {
if (!fs.existsSync(sshKeyPath)) {
// Generate new SSH key if it hasn't been created yet
await execAsync(`ssh-keygen -t rsa -b 4096 -f ${sshKeyPath} -N ""`);
await execAsync(`ssh-keygen -t rsa -b 4096 -f ${sshKeyPath} -N "" -C "dokploy-local-access"`);
}
const privateKey = fs.readFileSync(sshKeyPath, "utf8");