Does SSH on Mac keep a local cache of data?
SSH simply allows you to use a shell (command line) on a remote machine; it doesn't cache the data that you access.

If you're looking for a solution to back up files from another machine, and Time Machine isn't what you want, perhaps check out rsync.