[Solved]: scp: .: not a regular file / Tar / csv / sftv

When copying a directory or tar or zip , you should use the -r option:

scp -r root@IP:/path/to/file /path/to/file_destination

Situations in which scp will return not a regular file:

  1. File is actually a directory
  2. It also occurs if you’re not awake yet.
  3. You have your source and destination inverted.
  4. You’re trying to copy a non-existent file from your destination to your source
  5. File is a named pipe (a.k.a. FIFO)
  6. File is a device file

Case #1 seems most likely. If you meant to transfer an entire directory structure with scp use the -r option to indicate recursive copy.