falobase.blogg.se

Copy files between two linux servers
Copy files between two linux servers










You can also use ansible to accomplish this. Technically, you can configure Ubuntu to allow remote login directly as root, but this feature is disabled for a reason, so I would strongly advice you against doing that. Generally, working in the root account should be an exception, not a rule - the way you phrasing your question makes me think maybe you're abusing it a bit, which in turn leads to problems with permissions - under normal circumstances you don't need super-admin privileges to access your own files. scp -r folder/ sudo mv /some/folder /some/folder/requiring/permsĪnother solution would be to change permissions/ownership of the directories you uploading the files to, so your non-privileged user is able to write to those directories. A workaround is to use scp to upload files to a directory where your user has permissions to create files, then log in via ssh and use sudo to move/copy files to their final destination.

copy files between two linux servers copy files between two linux servers copy files between two linux servers

You're right, there is no sudo when working with scp.












Copy files between two linux servers