zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
19.46k stars 613 forks source link

Fix ssh proxyjump rewriting during session serialization #3466

Open dParikesit opened 6 days ago

dParikesit commented 6 days ago

I noticed that session serialization will rewrite ssh proxyjump command used in zellij.

For example, I have this ssh config

Host a
    ...
Host b
    ...
    ProxyJump user@a

Then I run ssh inside a zellij session using ssh b. During session serialization, zellij will rewrite the ssh command into ssh -W [b]:22 a

imsnif commented 6 days ago

I'm not 100% sure what Proxyjump is, but Zellij gets information about the commands from the OS with eg. something like the ps a command. I'd suggest looking in that direction to make it work.

dParikesit commented 6 days ago

ProxyJump is used to ssh to a machine (in this case b) through an intermediary machine (machine a). So it's basically user->a->b. Thanks for the clue, though. I'll try looking into it.