Juniper / go-netconf

NETCONF implementation in Go.
Other
254 stars 110 forks source link

Telnet connection waits forever #31

Closed dakshinai closed 6 years ago

dakshinai commented 7 years ago

I'm testing the example program telnetexample.go from a window machine. I'm able to telnet from the windows telnet client to a ubuntu machine (on network) running telnet server. However when I run the example program for the same ubuntu host using credentials, the programs waits on vendor.Login(t, username, password) forever. I believe it is expecting some regex match in this step , prompt, err := t.WaitForRegexp(promptRE) in jnpr/ioproc.go forever.

Any suggestions as to what could be wrong and how it can be fixed?

nemith commented 6 years ago

What junos device are you connecting to? In general the telnet logic is a hack and not really officially supported NETCONF transport.