mirror of
https://github.com/andwati/dokploy.git
synced 2026-12-03 00:08:47 +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)) {
|
if (!fs.existsSync(sshKeyPath)) {
|
||||||
// Generate new SSH key if it hasn't been created yet
|
// 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");
|
const privateKey = fs.readFileSync(sshKeyPath, "utf8");
|
||||||
|
|||||||
Reference in New Issue
Block a user