[JM] 10/13/2018 - https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html%|%plink%|%: a command-line interface to the PuTTY back ends I found the following code for a [Poor Man's Expect] for windows which runs by driving plink.exe: https://www.cnblogs.com/hua198/p/5693665.html What follows is a google translation from the chinese blog... TCL Automation SSH Interactive There are a lot of ssh tools, but they can be easily applied to automation scripts, which can be easily adapted to any environment. There are very few tcl tools for ssh interactive login. The following is an automated script that is satisfactory for individuals in the tcl automation process. ssh command interaction by sub-packaging plink.exe plink.exe login to the Linux server through the command line, tcl calls plink through cmd mode plink.exe is placed in the current directory of the script