python - How to copy to specific path over ssh to a Windows server with Fabric? -


how can copy file or folder on ssh specific folder (absolute path) in remote windows server ? possible use remote server's environment variables specify path?

if use fabric's put operation:

put('somedir') 

or

put('somedir', '.') 

without destination, create folder in user's desktop folder in destination , copy contents (i have no idea why default folder, , couldn't change through freesshd daemon used on windows server)

if try using:

put('somedir', '/users/me')  put('somedir', 'c:/users/me')  put('somedir', './testdir') 

or:

put('somedir', 'c:\\users\\me') 

it fail permission denied (an error in paramiko's sftp_client.mkdir).


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -