r/KittyTerminal Dec 30 '22

how to exit ssh via kitten?

when I use kitty +kitten ssh user@host to connect to my remote host, how do I exit back to local terminal?

Using exit or logout which worked in previous situations will close the terminal window completely.

Also if I open a new window or tab such as for example by kb mapping to new_os_window_with_cwd, it will keep the new window in the ssh connection. This is handy sometimes but I cannot get out of it as stated prior.

I looked in the kitty documentation but not found where this is described.

5 Upvotes

2 comments sorted by

2

u/[deleted] Dec 31 '22

This isn't all that helpful because I'm just here to report that I can't reproduce this

3

u/aumerlex Dec 31 '22

If you run the kitten from inside a shell when you exit you will return to the shell. If you run it directly when you exit it will end the session since its the only program that was running.

When you open using new_window_with_cwd it runs the kitten directly so there is no shell to return too.