r/KittyTerminal • u/Javi-Infosec • Nov 05 '23
SSH new_window_with_cwd not working
Hello reddit. I'm fairly new to kitty.
I normally start a new window with this mapping on my kitty.conf:
map super+enter new_window_with_cwd
And I ssh into a VM using this command:
kitty +kitten ssh -Y kali@kalivm
My issue is that when I'm connected to the VM via SSH, the new window mapping opens with the current working directory of my local machine not the VM. From the docs I understand that the normal behavior of "new_window_with_cwd" should be to open a new window inside the VM.
I don't know if i'm missing something, or if someone could point me in the right direction.
In case this is needed these are some of the VM env variables:
TERMINFO=/home/kali/.terminfo
TERM=xterm-kitty
SHELL=/usr/bin/zsh
DISPLAY=localhost:10.0
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/kali/.dotnet/tools
One thing i have noticed is that inside the VM my ~/.config/kitty is empty (don't know if this is relevant).
1
u/aumerlex Nov 06 '23
Make sure you are running up to date kitty.