79795339

Date: 2025-10-20 22:44:16
Score: 1
Natty:
Report link

When I dealt with a similar issue, my solution was to not run the SSH command with -N, but instead send the command bash -c 'echo "Connected" && while true ; do sleep 1; done'. Once connected, it would write "Connected" to STDOUT and then sleep forever; my outer script could just watch SSH's STDOUT for that string (or, indeed, any string).

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When I
  • Low reputation (0.5):
Posted by: macdjord