title: Bash: How to transfer file from local path to SSH server?
body: <p>What does one have to write to copy a file from a local location, to a password-protected remote ssh server in a terminal/bash script using Linux?</p>
  
  <p>For example:</p>
  
  <p>Source:  /home/bin/file.txt</p>
  
  <p>Destination: user@server.com</p>