diff --git a/kittens/ssh/options/definition.py b/kittens/ssh/options/definition.py index fd093a93a..616924088 100644 --- a/kittens/ssh/options/definition.py +++ b/kittens/ssh/options/definition.py @@ -136,6 +136,8 @@ Within a single kitty instance, all connections to a particular server can be shared. This reduces startup latency for subsequent connections and means that you have to enter the password only once. Under the hood, it uses SSH ControlMasters and these are automatically cleaned up by kitty when it quits. +You can map a shortcut to :ac:`close_shared_ssh_connections` to disconnect all +active shared connections. ''') opt('askpass', 'unless-set', choices=('unless-set', 'ssh', 'native'), long_text=''' diff --git a/kitty/boss.py b/kitty/boss.py index f135a4ed8..7141e0964 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -2245,7 +2245,11 @@ class Boss: output = '\n'.join(f'{k}={v}' for k, v in os.environ.items()) self.display_scrollback(w, output, title=_('Current kitty env vars'), report_cursor=False) - @ac('debug', 'Close all shared SSH connections') + @ac('debug', ''' + Close all shared SSH connections + + See :opt:`share_connections ` for details. + ''') def close_shared_ssh_connections(self) -> None: cleanup_ssh_control_masters()