vbs的写法:
Sub Main
xsh.Screen.Send "ssh 用户名@服务器地址"
xsh.Screen.Send VbCr
xsh.Screen.WaitForString "password: "
xsh.Screen.Send "登录密码"
xsh.Screen.Send VbCr
End Sub
注:VbCr意思是回车。
vbs的写法:
Sub Main
xsh.Screen.Send "ssh 用户名@服务器地址"
xsh.Screen.Send VbCr
xsh.Screen.WaitForString "password: "
xsh.Screen.Send "登录密码"
xsh.Screen.Send VbCr
End Sub
注:VbCr意思是回车。