If you are trying to copy some path to the host
scp root@IP:/path/ /path/on/local_pc
And you are receiving not a regular file error, just add
scp -r root@IP:/path/ /path/on/local_pc
Because to support coping folders you have to use
This is it.
Be hinty 🤘