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

ssh close if I use 2> /dev/null & #11

Closed
usama7628674 opened this issue Jun 22, 2019 · 1 comment
Closed

ssh close if I use 2> /dev/null & #11

usama7628674 opened this issue Jun 22, 2019 · 1 comment

Comments

@usama7628674
Copy link

usama7628674 commented Jun 22, 2019

@sardaukar @antoniomika
ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -R 80:localhost:1111 ssi.sh > link.url 2> /dev/null &

I get output in link.url file but ssh connection closed after outputting link.
SSH does not close if I use serveo.net with 2> /dev/null &.

I want the output but at the same time ssh should not close.

@antoniomika
Copy link
Owner

Hmm, that's actually interesting. I can't seem to get the command to not suspend even when using serveo, however. I wonder if having SSH fork first and then backgrounding the task would help? A quick Google sent me to this gist which could be helpful with what you're looking for. Regardless, I'm going to close this issue as it doesn't seem like a root problem in sish.

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