Fix issue with Telnet login
Add support for confirmation prompt