my advice is that if you intend to restrict remote login to root via ssh then you need to restrict scp as well or there isn't much point in it.
scp can be used to undo most any restrictions you put in, if you start trying to get clever with keeping root from an interactive usable shell you could also end up with some undesired and unintended consequences. either lock remote root or dont.
scp data as a regular user and chown/move/whatever as root if youu must.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.