Connecting twice

Dec 17, 2015 at 1:12 PM
In Putty, I can connect to a device that requires two logins (the first one must be "console"). Here's what the shell looks like:

login as: "console"

IM login: "myusername"
Password: "mypassword"

And then I can start giving it commands. However, I can't seem to mimick this with SSH.NET because I can only use Connect() once, and I don't know how to give it another set of credentials. If I use username="console", password = "", it connects fine, but I can't send commands because I haven't connected to the IM login. If I use my credentials, it fails (because I haven't entered "console"). I've tried using PasswordAuthenticationMethod, as well as providing my credentials via RunCommand(), but nothing seems to work. Any ideas? Do I have to use ShellStream for this kind of scenario?