From 3b01d5e2da8417a1b17292fd7750bb13dcbb54d9 Mon Sep 17 00:00:00 2001 From: Vince Loewe Date: Tue, 24 Dec 2024 10:55:07 +0100 Subject: [PATCH] push --- index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.ts b/index.ts index b8f2a33..fb8aa97 100644 --- a/index.ts +++ b/index.ts @@ -711,6 +711,8 @@ const HOST_KEY_PATH = "./host.key"; // Modify the server startup code const PORT = process.env.PORT ?? 2222; +console.log("Initializing server on port", PORT); + const server = new SSH2.Server( { hostKeys: [readFileSync(HOST_KEY_PATH)], @@ -721,7 +723,7 @@ const server = new SSH2.Server( }, }, async (client) => { - console.log("New client connection established"); + console.log("Client connected"); const sessionId = `session_${++sessionCounter}`; let autoLoginUsername: string | null = null;