vbs的写法:
Sub Main xsh.Screen.Send "ssh 用户名@服务器地址" xsh.Screen.Send VbCr xsh.Screen.WaitForString "password: " xsh.Screen.Send "登录密码" xsh.Screen.Send VbCrEnd Sub注:VbCr意思是回车。
xshell登陆后脚本
原文:https://www.cnblogs.com/hongfeng2019/p/11408723.html