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 command with closed stdin doesn't work #347

Open
HavinLeung opened this issue Mar 25, 2022 · 0 comments
Open

SSH command with closed stdin doesn't work #347

HavinLeung opened this issue Mar 25, 2022 · 0 comments

Comments

@HavinLeung
Copy link

I have a CentOS 8 box that's running tlog and running into an easily reproducible bug.

Expected behaviour:

me@my-box $ ssh -n me@other-box 'echo hello world'
hello world
me@my-box $

Actual behaviour:

me@my-box $ ssh -n me@other-box 'echo hello world'

ATTENTION! Your session is being recorded!

me@my-box $

I see two bugs here in my opinion:

  1. Commands just aren't being run when stdin is closed on ssh
    • omitting the -n flag makes it work as expected
    • this holds true for all commands I've tried including echo, ps, ls, touch
  2. The "session is being recorded" message should probably only be printed for interactive sessions
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

1 participant