So, here's the problem. I have a file on a remote machine available only to root, and a private-key-only no-root SSH access(I do have sudo though). I need to copy that file to the local machine, and make it as easy to use as possible (an alias or a shell script), because this will be used multiple times by different people.Here's what I was thinking:1. SSH to the remote machine and copy the file to some location where I have permissions2. From the local machine, do rsync --remove-source-files for the file I just copied.But I don't see any way to do it with just one command. Is there?
One shell script to perform commands locally and remotely
shell;shell script;ssh;rsync;root