Hello, I am having problems with Ruby Telnet API. More specifically, the login command. My code is as follows:
options["Name"] ||= 'anonymous'
options["Password"] ||= '******'
@connection.login( options, &block )
And the output...
Trying 10.160.52.63...
Connected to 10.160.52.63.
login: a
...and then I get a TimeoutError. Am I just not waiting long enough?? I set the timeout to 3 seconds. I would think this would be plenty of time to send a string, but maybe I am wrong?? Why would it take so long?
Thanks so much,
JW
EDIT:
I tried writing to kernel, to find out what's going on and I'm getting this:
login:
--> trying to login!!
---> String is...anonymous
----> printing string anonymous
--> writing .... anonymous
---> waitfor (?-mix:[Pp]ass(?:word|phrase)[: ]*\z)
a
The arrows show what I printed to Kernel...I don't know if this helps, figured I'd include it. I also tried setting the timeout to 25 seconds...no good. Thanks!