ziutek / telnet

Package to handle a telnet connection
Other
141 stars 60 forks source link

Fortigate FortiOS connection issues #17

Closed gunnsth closed 6 years ago

gunnsth commented 6 years ago

I am having some trouble with logging into Fortigate via telnet. Connecting and initial use works fine to Fortigate. This is a virtual instance on KVM (FortiGate-VM64-KVM). More specifically, Version: FortiGate-VM64-KVM v5.6.1,build1484,170727.

For reference: Example telnet connection (with regular telnet command):

Escape character is '^]'.

hostname login: admin
Password: **********
Welcome !

hostname #

when connecting with the telnet library, I can write "admin" and then read until "sword: " Then writing the password "mypassword" followed by a newline, it echoes a "*" for each letter. Reading back, I get the "**" however nothing more comes after that and the connection hangs. It feels as if the password is not finished to enter and nothing more comes back after reading. The password insertion is do is handled in the same way as the username insertion which works, so it is somewhat surprising.

Is it possible that the fortigate is using some option/setting that is not supported and is causing this behavior? Any ideas would be appreciated.

Thanks, Gus

gunnsth commented 6 years ago

My apologies. Turns out I was a few commits behind and this is working perfectly in the current version.