tlog icon indicating copy to clipboard operation
tlog copied to clipboard

SSH command with closed stdin doesn't work

Open HavinLeung opened this issue 2 years ago • 0 comments

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

HavinLeung avatar Mar 25 '22 13:03 HavinLeung