views:

133

answers:

0

I am facing a situation where an Attachmate Extra visual basic script which has worked with Telnet needs to be concerted to SSH.

The current Telnet implementation uses a "Telnet specific" edp file. The code which references the EDP is here:

Set oExtraBanner = oExtraSystem.Sessions.Open("myTelnet.edp") 
Set oExtraScreen=oExtraBanner.Screen

oExtraScreen.SendKeys sUserName&"<ENTER>"
oExtraScreen.SendKeys sPassword&"<ENTER>"

I have "recorded" a new EDP macro with SSH specific settings. When I run the VBS scripts, the attachmate SSH window asks for a username and password - hangs for a "while", then displays "SSH error occured. Please contact your adminstrator".

Do I have to change the VBS code?

Can someone "please" give me pointers on how to convert these Telnet scripts to SSH?

thanks

Miles.