Skip to content

KiTTY++ 0.85.1.23-beta

Pre-release
Pre-release

Choose a tag to compare

@hknet hknet released this 30 Nov 13:35

KiTTY++ 0.85.1.23-beta - Trusted Agents and trusted kageant pipe clients, signed session icons

This update brings Trusted Agents for SSH agents of other vendors, also trusted kageant pipe clients, a wait for a busy agent pipe and Allow for clipboard reads. kitty++.icl holds only its icons now and is signed like the other binaries. Window positions on a monitor with another scale setting or with negative coordinates are fixed (#97).

Regarding any Antivirus-Warnings you might see, please visit our issues page to see if this is already known or needs attention.

The details are as follows:

New:

  • Trusted Agents (Application > Security > Trusted Agents): a list of SSH agents from other vendors that the terminal, klink, kscp and ksftp accept without the warning "SSH agent not verified". An entry identifies a signed program by the signer and the issuing CA of its Authenticode signature and the OriginalFilename of its version resource, an unsigned program by its SHA-256. Trust this agent... adds the agent that answers at that moment, for all users of the PC (administrator rights). Group Policy sets the list in the subkey TrustedAgents of the policy key. For a trusted agent the terminal writes Event Log record 228 (the console tools: 328) instead of the warning. A click on the warning opens this panel. (#28)
  • kageant pipe clients (kageant Settings > Clients, Pipe clients: "KiTTY++ programs and trusted programs only", default "All programs"): kageant serves on its pipes only KiTTY++'s own programs and the programs on the trusted list with the role client. Any other program is refused before its first request. The page lists the programs refused since kageant started; Trust... adds the selected one to the trusted list. The setting pipeclients and the list are stored in the machine key or a policy key (administrator rights). Each refusal writes Event Log record 163 and shows a notice once per program and run. Windows XP does not report the program of a pipe client: there the setting is not offered and kageant serves every program. Group Policy template revision 1.1 adds the policy "Serve only KiTTY++ programs and trusted programs" and the list "Trusted agents and pipe clients". (#29)
  • Busy agent pipe (Application > Security, group SSH key authentication, Busy agent pipe: wait up to, in seconds (0 = no wait), [KiTTY] agentpipewait, default 5): when every instance of the SSH agent's pipe is taken, the terminal, klink, kscp and ksftp wait up to that time for one, then fail the request with "SSH agent pipe busy: no answer within N s" in the Terminal Window's Event Log (the window shows it) or on standard error. A login waits once: after that it sends the agent no further request. A request to an agent with a pipe no longer falls back to window messages. Those are used only where no pipe exists (Pageant before 0.75). The Group Policy template has the setting as "Busy agent pipe: maximum wait (seconds)".
  • Clipboard reads: Allow (Window > Copy & Paste > Remote clipboard, reads, OSC52ClipboardRead=2): the clipboard is sent without a dialog, for sessions whose programs the user trusts, such as a local WSL shell. "Only while the terminal window has focus" and the read limits still apply. A note on the panel states the risk: once the terminal window has the focus, a program in it reads whatever the clipboard holds. Ask stays the recommendation, Deny the default. Releases before this one read a session saved with Allow as Deny.

Changed - check your setup:

  • kitty++.icl, the session icons, holds only its icons and version information now, without start-up code. It is signed like the programs. Several virus scanners flagged the unsigned file of 0.85.1.22-beta.
  • The checkbox "Only while this window has focus" (Remote clipboard) reads "Only while the terminal window has focus".
  • The Application panels no longer end with the line "Settings here are saved as you change them." When the configuration window was made taller by dragging its bottom edge, the line moved with the edge and was not drawn again, which left an empty frame above the buttons.

Fixed:

  • Remember window position (Window > Appearance): on a monitor with another scale setting than the main monitor, the window opened too high and too far left. It could also open with fewer rows. A window at a screen edge, for example snapped to the left half, opened a few pixels away from that edge. Open the window at a fixed position and -xpos/-ypos ignored a negative Top or Left. A monitor left of or above the main monitor has negative coordinates. (#97)
  • A Local session window closed without a trace when its program ended with an error, for example when WSL was stopped under it: "Only on clean exit" counted any exit code as clean. For a Local session it now closes only on exit code 0. Any other code leaves the window open with "Process exited with code N" in the terminal and in the Terminal Window's Event Log.
  • kageant: a program that connected to one of its pipes and closed the connection at once could stop kageant listening on that pipe. Every later client then waited for a free pipe instance and ssh-add did not return. The terminal's pipe for a shared SSH connection uses the same code and is fixed as well.
  • kageant answered no request, on its pipe or by window messages, while one of its windows with a loop of its own was open: the settings, a message box, a file dialog, the tray menu. A terminal that sent its request by window message stopped until that window was closed. kageant now answers while such a window is open.
  • The folder list beside New folder on the Session panel is sorted by name regardless of case, each subfolder right under its parent. It listed the folders in the order they were made.
  • When KiTTY++ could not create its sessions folder or kitty.ini, the box read "Unable to create sessions directory !" or "Unable to create configuration file !", with no path and no reason. Both boxes now show the path and the Windows error.
  • A setting or session that could not be saved always got the hint "Another program may have the file open.", also when the user had no write rights. The hint now follows the error: "This user may not write to the file or its folder." or "Another program has the file open."

Upgrading: install over your existing version, your settings stay as they are. A session saved with clipboard reads Allow reads as Deny in releases before this one.

Full changelog: https://github.com/hknet/KiTTY/blob/kitty-0.85.1.23-beta/CHANGELOG.md
Known limitations: https://github.com/hknet/KiTTY/blob/kitty-0.85.1.23-beta/KNOWN-ISSUES.md

VirusTotal reports of the downloads (the programs inside a ZIP are under Relations > Bundled Files):

At release time DeepInstinct flags the UPX-packed kitty.exe and kitty_portable.exe of kitty-0.85.1.23-beta-upx.zip. This is reported to the vendor as a false positive. The Yomi Hunter sandbox flags the 32-bit klink.exe, which none of the 68 engines detects.