Download securecrt.tlb type library
# $language = "VBScript"
# $interface = "1.0"
'Dim crt As SecureCrt.crt
' Connect to an SSH server using the SSH2 protocol. Specify the
' username and password and hostname on the command line as well as
' some SSH2 protocol specific options.
host = "ssh.somecompany.com"
user = "myusername"
' Prompt for a password instead of embedding it in a script...
passwd = crt.Dialog.Prompt("Enter password for " & host, "Login", "", True)
' Build a command-line string to pass to the Connect method.
cmd = "/SSH2 /L " & user & " /PASSWORD " & passwd & " /C 3DES /M MD5 " & host
VbsEdit provides Intellisense for SecureCRT!
Copyright © 2001-2022 adersοft