title: How to Obtain Pseudo Terminal Master file descriptor from inside ssh session?
body: <p>in C or bash,</p>
  
  <p>I was wondering how, if possible, do you obtain from inside an ssh session, the file descriptor to the pseudo terminal master responsible for getting input to that's session's slave(pts).</p>