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

Using MOSH for flaky internet connection #158

Open
leoc opened this issue Aug 23, 2021 · 2 comments
Open

Using MOSH for flaky internet connection #158

leoc opened this issue Aug 23, 2021 · 2 comments
Labels

Comments

@leoc
Copy link

leoc commented Aug 23, 2021

Hello and thank you very much for this project.

Recently I have been traveling and had to deploy long running recipes with flaky internet connection. Unfotunately the connection dropped a lot, causing the output to stop. The jobs still run through, but I did not get the output from chef anymore.

How hard would it be to run all commands via some custom ssh command or maybe even MOSH (mobile shell), which reconnects automatically if the connection is lost?

Thanks again!

@sawanoboly
Copy link
Member

Thanks for the feedback!

When running knife-zero, the recipe forwarding uses the port forwarding feature of SSH. I'm not familiar with mosh, so I looked it up, but it doesn't seem to have a port forwarding feature, so it would be difficult to implement as an SSH alternative.

As an alternative, you can prepare a stepping stone host on the target node's network, and use a terminal multiplexer such as tmux to run on that host.

@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants