Enchanter is a small library that helps you script SSH sessions in a manner similar to Expect. It comes in multiple flavors that support different scripting languages including Python, Ruby, and BeanShell.
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.
This release comes in new flavors for Python,
Ruby, and BeanShell, and adds a "learning mode"
that observes and records an interactive session
into a new script.