Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

refactor: update SSH connection algorithms for improved security

Victor Hugo dos Santose85584719c47
diff --git a/backend/src/services/app-connection/ssh/ssh-connection-fns.ts b/backend/src/services/app-connection/ssh/ssh-connection-fns.ts
index de37c72631..2afed4776f 100644
--- a/backend/src/services/app-connection/ssh/ssh-connection-fns.ts
+++ b/backend/src/services/app-connection/ssh/ssh-connection-fns.ts
@@ -48,14 +48,7 @@ const attemptSshConnection = (
readyTimeout: SSH_TIMEOUT,
tryKeyboard: false,
algorithms: {
- serverHostKey: [
- "ssh-rsa", // Required for HP iLO 4/5
- "ssh-dss"
- ],
- kex: [
- "diffie-hellman-group14-sha1", // Required for HP iLO 4/5
- "diffie-hellman-group1-sha1"
- ]
+ serverHostKey: ["rsa-sha2-512", "rsa-sha2-256", "ssh-rsa", "ecdsa-sha2-nistp256", "ecdsa-sha2-nistp521"]
}
};