jbardin / scp.py

scp module for paramiko
Other
535 stars 137 forks source link

make scp_command modifiable #157

Closed dominiclondon closed 3 years ago

dominiclondon commented 3 years ago

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.

remram44 commented 3 years ago

Looks good! Thanks!