Skip to content

SSH command with closed stdin doesn't work #347

Description

@HavinLeung

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions