Expect Shell SSH Example

I found this nice example of using the Expect Shell to automate an SSH connection providing username and password:




When automating SSH connections it would be better to have authentication keys setup to avoid the necessity of passing a password to a script, but this is not always possible and in these cases the Expect Shell offers a workaround.


I need this type of automation functionality as I am currently working on automating some Git tasks, so that an application running on the Google App Engine can access Git repositories via a Web API running on a third party system.


Git is gaining more and more popularity as a Software Control system within the Software Development community but it turns out that interacting with it from the Google App Engine is far from trivial – but what’s new! ;-)