I'm on the machine A, and I want to run a bash script from A to copy some files from B via scp. Those files are stored in a path that needs root access to be accessed but root remote access is disabled for ssh in B. I cannot change that configuration.Standard scp statements do not work since I'm not asked to type B's root password during scp execution on A.How can I do?
Copy file via scp from a remote machine that need root access (with remote root access disabled)
ssh;root;scp