I used the following command:
scp -r root@IP:/home/user/remotefolder /localfolder
After entering my passphrase (I'm using SSH key), I get the following error:
/remotefolder: Read-only file system
Not sure why I get this error. When I log in as root, I can copy this folder to another location within the server, but the command above doesn't work. Since I'm copying from remote to local, why would a read-only folder/file affect a copy?


/localfolderis not on a read-only mount? I think the error message is supposed to be understood as "while copying/remotefolder, the following error occurred: …"