sshd closes the pipe for STDERR

Solution Verified - Updated -

Issue

In executing a shell(shell1.sh) by ssh command, when shell1.sh finished, sshd closed pipe for the standard error of another shell(shell2.sh) invoked in the background by shell1.sh even if shell2.sh was still being executed.

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • openssh-server

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content