mac助手,首次连接时不再提示输入yes/no了。

pull/236/head
Apex Liu 2020-06-04 20:56:00 +08:00
parent ddd01abeb0
commit c3ff1169dd
1 changed files with 5 additions and 5 deletions

View File

@ -652,7 +652,7 @@ void TsHttpRpc::_rpc_func_run_client(const ex_astr& func_args, ex_astr& buf) {
{ {
if(g_cfg.ssh.name == "terminal" || g_cfg.ssh.name == "iterm2") { if(g_cfg.ssh.name == "terminal" || g_cfg.ssh.name == "iterm2") {
char szCmd[1024] = {0}; char szCmd[1024] = {0};
ex_strformat(szCmd, 1023, "ssh %s@%s -p %d", sid.c_str(), teleport_ip.c_str(), teleport_port); ex_strformat(szCmd, 1023, "ssh %s@%s -p %d -o \"StrictHostKeyChecking no\"", sid.c_str(), teleport_ip.c_str(), teleport_port);
char szTitle[128] = {0}; char szTitle[128] = {0};
ex_strformat(szTitle, 127, "TP#%s", real_host_ip.c_str()); ex_strformat(szTitle, 127, "TP#%s", real_host_ip.c_str());