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

kjv.007
  • 261

5 Answers5

27

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"
Pang
  • 1,017
Mattia72
  • 420
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
Julian
  • 151
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

Jay.K
  • 41
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 username@192.168.1.X
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
Manuel Jordan
  • 417
  • 2
  • 8
  • 20
2

Just created a new ConEmu task with the following command:

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

works like a charm.

Veton
  • 131