Menu

#28 If the first session is started by command line with an argument, all other sessions fail.

v1.0 (example)
closed
Noodle
None
5
2018-06-21
2018-04-09
simpleton
No

Hi,

I'm trying to use the putty noodle build to automate some of my logins. I'm using Windows command line to pass arguments like username and host to the putty.exe. The first session always works, but when trying to open a second, third, fourth, ... session in a tab it fails. I'm not able successfully open a new new session at that point, I alway get "Connection closed by remote host". Tried to open a new session by command line and manually in putty noodle, but it keeps failing for both attempts. Same host or a different one, it does not matter, the result is the same: it fails with the same error message. Closing the putty instance and opening a session again (cmd or manual) works
Syntax I'm using in cmd: <path to="" putty-nd.exe=""> <host> -l <login>.
If you could have a look, I would greatly appreciate it!</login></host></path>

Best regards,

Discussion

  • simpleton

    simpleton - 2018-04-09

    apparently the full syntax line is not shown, so i'll change it a bit in an attempt to show it all:
    <path to="" putty-nd_dot_exe=""> <host> -l <login></login></host></path>

     

    Last edit: simpleton 2018-04-09
  • Noodle

    Noodle - 2018-04-10

    I just had a test. It seems working fine for me. It is expecting password which is not specified. Download the attachment and rename it to gif, then open with browser, and you will see..
    try " putty @folder_name_if_any#short_name " to open exist session which can automatically logon by aoto cmd or whatever.
    As to the the full syntax line, I do not get a full copy myself. I just make the original putty cmdline work and have to dive into the code to know what happens.

     

    Last edit: Noodle 2018-04-10
    • simpleton

      simpleton - 2018-04-10

      Thanks for having a look. I'm not having the issue when I use the original putty exe. I tried omitting the password argument, and indeed, that works. So it's probably something with the handling of the password when that info is added as an argument. Can you test again, but this time add the password as an argument? Syntax looks like this: " putty <host> -l <login> -pw <password> ".</password></login></host>

      Something I just noticed (might be related, not sure): when launching the first session, the putty noodle windows opens on top of all windows. When launching a second session with cmd, a tab is added, but the putty noodle does appear on top of all windows, but it stays "hidden" after the windows of other applications that are running.

      Best regards,

       
  • simpleton

    simpleton - 2018-04-10
     

    Last edit: simpleton 2018-04-10
  • Noodle

    Noodle - 2018-04-10

    bug。。。

     
  • Noodle

    Noodle - 2018-04-10

    fixed in the attachment. if everything is fine, it will be in next release

     
    • simpleton

      simpleton - 2018-04-10

      Tested some scenarios, looks good! :)

       

      Last edit: simpleton 2018-04-10
  • Noodle

    Noodle - 2018-06-21
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB