windowssshexpectactivestate

How to ssh using ActiveState's 'Expect' for Windows


I've been racking my brain trying to figure out, mush less find, a tutorial that shows how to use ActiveState's Expect utility to ssh to another server. I cannot find how to simply ssh into a server and run something simple (like 'ls') and disconnect.

The demos folder does not contain the tkremotes.tcl script the documentation claims, but I did find a copy of it here. Looking at this, I don't understand how they are making the ssh connection, if at all.


Solution

  • Use KiTTY (modded version of PuTTY). It has everything you need: saves password & user, executes commands and exits automatically).