I want to transfer files using python from server1 and need to transfer this file to multiple servers (server2,server3,server4) and each have different username & password.
Asked
Active
Viewed 232 times
0
-
1Related? http://stackoverflow.com/questions/250283/how-to-scp-in-python – Karim Tabet Apr 21 '17 at 08:57
1 Answers
0
pysmb
is a pretty nice library for this. It's also OS independent, although it would require some form of hard-coded passwords.
https://pythonhosted.org/pysmb/
See this SO post for an example of pysmb usage.