tlog
tlog copied to clipboard
SSH command with closed stdin doesn't work
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:
- 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
- The "session is being recorded" message should probably only be printed for interactive sessions