SSH kitten asks for password when splitting from a keybinding #6938
Replies: 4 comments 9 replies
-
Assuming you ran the ssh kitten in window 1 and then ran your mapping,
the newly created window should automatically be logged in and at the
cwd of 1 regardless. It doesnt matter if you do it via remote control
or mapping. If that's not working for you then make sure you are running
up-to-date kitty.
|
Beta Was this translation helpful? Give feedback.
-
I'm getting a similar issue, though it presents slightly differently and I'm not sure what's happening.
But instead of a password prompt, I'm getting an error, where the only thing I can do is press Enter and it closes the window.
I am running the latest kitty version already (0.31.0). |
Beta Was this translation helpful? Give feedback.
-
On Fri, Jan 05, 2024 at 10:30:18PM -0800, Mike wrote:
In response to OP's question then: Is there any way to have a keybinding that will simply duplicate the current window regardless of whether the current session is local or remote?
Or to be less picky, a single keybinding that will just give me a new window at the same location (regardless of whether or not I'm currently SSH'd in with the kitten or just local)?
map f1 launch --cwd=current
|
Beta Was this translation helpful? Give feedback.
-
cwd is special cased, it will work even for remote sessions because shell integration reports it. Again, you need to have functioning shell integration on the remote system, which is automatically setup by the ssh kitten. So all you need to do is kitten ssh server |
Beta Was this translation helpful? Give feedback.
-
I'm trying to get keybindings for splitting a window working in an ssh session.
I have the following key binding in my config:
Using this binding while in an ssh session opens a vertical split, which only contains a password prompt (hostname, newline,
>
). After entering a password the vsplit just closes (no matter if I enter the SSH account password or something else). What is this password used for? The previously opened ssh session uses public key authentication via ssh-agent.With remote control enabled, running the same command from the command line inside the SSH session instead of via keybinding works, opening a split with another shell on the ssh remote:
I'm assuming the kitty process started inside the ssh session is required for getting environment and current cwd, so it works with that but not the keybinding. If I remove
--copy-env
and--cwd
from the command, both variants work the same, but open a split with a local shell.Is it possible to get the behaviour from the remote command via a keybinding, preferrably a single one that works for both local and ssh?
Beta Was this translation helpful? Give feedback.
All reactions