26

I have been trying to open a new PuTTY window inside as one of ConEmu Tab, but no success so far, I've tried many combinations.

putty.exe -cur_console:b -ssh USER@DOMAIN 22 -pw PASSWORD
putty.exe -new_console -ssh USER@DOMAIN 22 -pw PASSWORD
ConEmu.exe /single /cmd putty.exe -cur_console:b -ssh USER@DOMAIN 22 -pw PASSWORD
ConEmuC.exe /ATTACH /ROOT putty.exe -cur_console:b -ssh USER@DOMAIN 22 -pw PASSWORD

what will happen is putty will be open in a new window outside ConEmu

1

5 Answers 5

26

I had the same issue, as I installed PUTTY by chocolatey.
In this case, if you call PUTTY, it will run the shim from the chocolatey\bin folder, and not the real exe.

As I put the whole path into the task, PUTTY appeared within the ConEmu window:

C:\ProgramData\chocolatey\lib\putty.portable\tools\PUTTY.EXE -load "saved session"
1
  • Similar issue here after using Scoop to install PuTTy. Similarly, I had to change the task to run from the scoop apps directory. i.e. C:\Users\<username>\scoop\apps\putty\current\PUTTY.EXE -load "saved session"
    – Rohaq
    Commented Oct 16, 2020 at 23:53
5

I had the same problem with putty launching a new window even when I was able to get notepad to work correctly and found your question in looking for a solution. I was later able to solve the problem as per below.

In the settings dialog for your command, under task parameters provide the following:

/dir <full path to your instance of putty>

Then in the Commands box provide something like this:

putty.exe -cur_console -ssh USER@DOMAIN 22 -pw PASSWORD

This should work. In my case I'm using something more along the lines of this:

putty.exe -cur_console -load <profile name>

If you want something you can just type in on the command line then something like this should work:

putty.exe -new_console:d"C:\Program Files (x86)\PuTTY\PuTTY" -ssh USER@DOMAIN 22 -pw PASSWORD
3
  • 1
    thanks, for some reason, it's still not working for me :( On the putty tab on conemu, it's showing this message: ConEmuC: Root process was alive less than 10 sec, ExitCode-0 Press Enter or Esc to close console.... It will open putty on a separate window outside of ConEmu
    – kjv.007
    Commented Jan 21, 2016 at 10:08
  • @kjv.007 updated with another option
    – Julian
    Commented Jan 22, 2016 at 15:01
  • @Julian Can you share a Figure about what you added in "settings dialog"? - I can see the current figure, but not sure what you added Commented Oct 12, 2021 at 16:00
4

What worked for me is the full path inside quotes

"C:\Program Files (x86)\PuTTY\putty.exe" -load "your_session_Name"

Any thing else opened putty in a seperate window.

ConEmu version: 160724 32 bit. PuTTY Release 0.67 32 bit

4
  • This worked for me as well, granted I had already set up my profile
    – cbcoutinho
    Commented Mar 26, 2018 at 18:36
  • This is what fixed it for me. Putting the PuTTY path inside double quotes makes it work correctly. Commented Sep 5, 2018 at 11:10
  • This was the only thing that worked for me too.
    – iansedano
    Commented Oct 12, 2021 at 7:12
  • Even when it works, it opens a new window. The point is do the connection within the ConEmu Commented Oct 12, 2021 at 15:49
3

The solution is, open the Task section, add a new task:

  • Give a name: for example PuTTY SSH 192.168.1.X
  • Leave empty the textfield (the second)
  • In the textarea (in the bottom) add one of the following commands according your preference:
C:\path-to-putty\putty.exe -ssh [email protected]
C:\path-to-putty\putty.exe -load "saved session name"

Do click at Save settings

Therefore, with ConEmu still running proceed to open a New console dialog... (or Win + Shift + W), it opens a new dialog window, in the first select box search the PuTTY SSH 192.168.1.X option and do click in the Start button and done!

Therefore with this approach you are able to:

  • Open in the same window many tabs to establish a connection for the same remote machine
  • Create many tasks as you need where each task represents a different connection to other remote machine
2

Just created a new ConEmu task with the following command:

PUTTY.EXE -cur_console -ssh <Login>@<HostAddress> -pw <Password>

works like a charm.

1
  • for me it's just showing these in my ConEmu Tab ConEmuC: Root process was alive less than 10 sec, ExitCode=0. Press Enter or Esc to close console... and then opening the usual putty window seperately.
    – kjv.007
    Commented Aug 16, 2016 at 8:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .