mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: add ssh key comment for auto generated key
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user