Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

et needs ssh's -t option to support running tmux with et #620

Open
timotheecour opened this issue Feb 22, 2024 · 2 comments
Open

et needs ssh's -t option to support running tmux with et #620

timotheecour opened this issue Feb 22, 2024 · 2 comments

Comments

@timotheecour
Copy link

timotheecour commented Feb 22, 2024

ssh -t is useful to force pseudo-terminal allocation, eg:

ssh myhost /pathto/tmux new-session -A -s foo
open terminal failed: not a terminal
ssh -t myhost /pathto/tmux new-session -A -s foo
works, starts or joins tmux
ssh -o RequestTTY=yes myhost /pathto/tmux new-session -A -s foo
also works

what's the equivalent with et?
this didn't work:
et myhost -c "/pathto/tmux new-session -A -s foo"
it prints:

/pathto/tmux new-session -A -s foo; exit
/pathto/tmux new-session -A -s foo; exit
etc

passing this didn't help: --ssh-option -t nor did --ssh-option RequestTTY=yes, nor did --ssh-option RequestTTY=force

this might help with debugging?
et --logtostdout --verbose 9 --ssh-option "LogLevel=DEBUG3,RequestTTY=force"

@timotheecour
Copy link
Author

timotheecour commented Feb 22, 2024

EDIT: my setup was a bit more complex and i needed a --jumphost host_aux, and what i had tried was:

from macos:

ssh host_aux
then this failed: et myhost -c "/pathto/tmux new-session -A -s foo"
while this worked: `et myhost` followed by `/pathto/tmux new-session -A -s foo`

but this works if I run directly:
et myhost --jumphost host_aux -c "/pathto/tmux new-session -A -s foo"

so there's a valid workaround, feel free to close if remaing bug is bearable

@MisterTea
Copy link
Owner

MisterTea commented Feb 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants