I saved a lot of time automating ssh & scp tasks using python. This story shows you how I did that.
Source : Save Time by Automating SSH and SCP Tasks with Python