From b56a7f854c6ca507a8b03e1ff36123a2addf3106 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 11 Jul 2023 18:05:12 +0530 Subject: [PATCH] remotesupport: remove superfluous sshd_config check --- src/routes/support.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/routes/support.js b/src/routes/support.js index d1ae2786a..36b0ebb22 100644 --- a/src/routes/support.js +++ b/src/routes/support.js @@ -58,10 +58,6 @@ async function canEnableRemoteSupport(req, res, next) { if (!supportConfig.remoteSupport) return next(new HttpError(405, 'feature disabled by admin')); - const SSHD_CONFIG_FILE = '/etc/ssh/sshd_config'; - const sshdConfig = safe.fs.readFileSync(SSHD_CONFIG_FILE, 'utf8'); - if (!sshdConfig) return next(new HttpError(412, `Failed to read file ${SSHD_CONFIG_FILE}`)); - next(); }