title: How to copy a file to a remote server in Python using SCP or SSH?
body: <p>I have a text file on my local machine that is generated by a daily Python script run in cron. </p>
  
  <p>I would like to add a bit of code to have that file sent securely to my server over SSH.</p>