ConEmu: How to attach PuTTY
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
Solution 1:
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"
Solution 2:
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
Solution 3:
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
Solution 4:
Just created a new ConEmu task with the following command:
PUTTY.EXE -cur_console -ssh <Login>@<HostAddress> -pw <Password>
works like a charm.