-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Not Handled for Request Type: connectByUsername #55
Comments
Hi, What are OS and SSH implementation are you connecting to? Also MTS is not maintained, but MTM-SSH is. MTM-SSH is far more stable, API is almost the same (see documentation), its Linux only, but given you are connecting from a Linux host that works. Try it, |
Hi, thanks for your response.. I've tried MTM-SSH and it works. Can I use this to connect to network router with various platform (ex: cisco, huawei, zte, nokia, etc)? Because I've got error when I tried to get a remote shell on a linux server using an existing shell (using jumphost server to connect to network router). I got exception "Shell was terminated" on rawRead function when execute getDestinationShell. |
Hi @mmsyamsurrijal, MTM-SSH has 99% parity with the underlying shell. There are sometimes issues sending control sequences as they are non-printable. But generally I have not yet had an instance where it failed to connect to another linux box. As for different routers and other network devices. Regarding the "Shell was terminated" error, chances are the shell type on the device you are connection to is unknown to MTM-SSH and it is likely you need to write a shell class for each type if they are not just a standard bash shell. As an example see here for Mikrotik RouterOS. In addition, once you connect a shell, the terminal you end up with might change (x-term, vt100 etc). Again see the mess of terminal breaks when parsing RouterOS returns. Hats off to programs like Putty for handling all these cases as well as it does. You can check the stdout piped data by starting a shell. inset a sleep(5), then execute the following on the command line:
Then see the commands get executed and their return. |
Hello.. I keep getting error "MTS\Common\Devices\Actions\Remote\Connections\Ssh::connectByUsernameFromLinux>> Not Handled for Request Type: connectByUsername" when i tried to connect SSH by username. Would you please help me?
The text was updated successfully, but these errors were encountered: