• Use ssh -n to prevent ssh from swallowing stdin.
  • Problematic code:
  • Correct code:
  • Rationale:
  • Exceptions:
  • Related resources: