title: How to secure communication between two c++ programs over ssh
body: <p>This might be a non-programming question.</p>
  
  <p>Exposition:</p>
  
  <p>1) I am using Linux.</p>
  
  <p>2) I have two C++ programs, "client" and "server"; they run on different machines, they currently talk over tcpip. I have the source code to both programs.</p>
  
  <p>3) Neither program does buffer over flow checking / defense against man in the middle atacks / mac / encryption.</p>
  
  <p>4) I don't want to add this extra layer of complexity to my programs.</p>
  
  <p>5) I want to have the two programs just talk over a ssh channel (but both client &amp; server are running on machines that are multi-user; so if I just open up ports, other uses may access them too).</p>
  
  <p>Question:</p>
  
  <p>What is the least intrusive way to get client&amp;server to talk to each other over a secure channel?</p>
  
  <p>Thanks!</p>