From 5aa425ee05da8582a21e52ea8112845cecd7026f Mon Sep 17 00:00:00 2001 From: Zhihe Li Date: Mon, 11 Sep 2023 17:19:53 -0400 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20Add=20flag=20to=20ssh=20?= =?UTF-8?q?command=20to=20not=20prompt=20for=20known=20hosts=20(#1894)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/desktop/app/components/session/tabs/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/desktop/app/components/session/tabs/index.js b/ui/desktop/app/components/session/tabs/index.js index 636de6f4a..439b2c2c5 100644 --- a/ui/desktop/app/components/session/tabs/index.js +++ b/ui/desktop/app/components/session/tabs/index.js @@ -44,7 +44,10 @@ export default class SessionTerminalTabsComponent extends Component { const { proxy_address, proxy_port } = model; // Send an SSH command immediately - window.terminal.send(`ssh ${proxy_address} -p ${proxy_port}\r`, this.id); + window.terminal.send( + `ssh ${proxy_address} -p ${proxy_port} -o NoHostAuthenticationForLocalhost=yes\r`, + this.id + ); } }