1. # pushing data to an ssh server:
     tar czf - files/directories | ssh user@host "cd /fullpath && tar xzvf -" 
    
  2. # pushing data to a tar.gz file on a remote ssh server:
     tar czf - files/directories | ssh user@host "cat > /fullpath/file.tgz" 
    
  3. # pulling data from an ssh server:
     ssh user@host "tar czf - files/directories" | tar xzvf -