浏览代码

Bug 1822: Add an example for using Win32-OpenSSH ssh.exe as SSH terminal

https://winscp.net/tracker/1822

Source commit: 5fa5386a62ec3ae079af4e7e8420f30183b53cfd
Martin Prikryl 5 年之前
父节点
当前提交
352894f589
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      source/windows/CustomWinConfiguration.cpp

+ 2 - 0
source/windows/CustomWinConfiguration.cpp

@@ -86,6 +86,8 @@ void __fastcall TCustomWinConfiguration::DefaultHistory()
   Strings->Add(FormatCommand(DefaultPuttyPath, L"-t -m \"%TEMP%\\putty.txt\" !`cmd.exe /c echo cd '!/' ; /bin/bash -login > \"%TEMP%\\putty.txt\"`"));
   Strings->Add(KittyExecutable);
   Strings->Add(FORMAT(L"%s -cmd \"cd '!/'\" !U@!@ -P !# -title \"!N\"", (KittyExecutable)));
+  Strings->Add(L"%SystemRoot%\\Sysnative\\OpenSSH\\ssh.exe !U@!@ -p !#");
+  Strings->Add(L"%SystemRoot%\\Sysnative\\OpenSSH\\ssh.exe !U@!@ -p !# -t \"cd !/ ; /bin/bash\"");
   FHistory->AddObject(L"PuttyPath", Strings.release());
 }
 //---------------------------------------------------------------------------