We sometimes need to put files into root perm directories, like /etc. Currently this requires putting the file to a temporary directory then moving the file. This PR allows for the scp_command to be modified so that you can run for example sudo scp, which provided the user has disabled sudo password prompt, allows for scping straight to a root perm directory.
I've left this as a hidden feature, that requires setting self.scp_command to work.
We sometimes need to put files into root perm directories, like
/etc
. Currently this requires putting the file to a temporary directory then moving the file. This PR allows for thescp_command
to be modified so that you can run for examplesudo scp
, which provided the user has disabled sudo password prompt, allows for scping straight to a root perm directory.I've left this as a hidden feature, that requires setting
self.scp_command
to work.