-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Is your feature request related to a problem? Please describe.
When I connect to a remote server with the ssh kitten, subsequent connections with the kitten to that server from that terminal window will reuse that session. This is great, but when I provide different options with the second connection that would need a new session, those basically get silently ignored.
An example for this is first calling kitten ssh foo and later (after disconnecting from the same terminal) calling kitten ssh -X foo. The second call will not try to enable X forwarding as one would expect and there is no indication why that is the case.
Describe the solution you'd like
It would be great if kitty could detect if I provide different options and open new connections for different options. If that is not possible reliably, it would be nice to have a possibility to force kitty to open a new session manually. For me, it would also be fine if kitten just uses a new session after I disconnected (but I am really unsure how that would interact with the "open new tab/window in this remote directory"-feature).
Describe alternatives you've considered
I tried using different aliases for the same hostname (so multiple Host sections in the .ssh/config with identical content but different names), but that changed nothing.
Additional context
You can use kitten ssh -v foo to get debug output and from that it is pretty obvious if a connection is being reused or not.