9

Is it possible to auto attach any putty.exe or kitty.exe console windows to ConEmu? If yes, then how can it be done?

Excellll
  • 12,847
serge.k
  • 190
  • 1
  • 1
  • 4

6 Answers6

4

I was looking to do the same thing and found this link

http://www.thecrumb.com/2013/03/04/configuring-conemu-and-putty/

I think it's basically what Maximus was saying but you will do this from inside ConEmu

AntonioCS
  • 509
3

Guys I just found the way! Totally possible without create shortcut for every session to load.

I just found that CMDER has a default task named {Putty}. It just launches Putty.exe directly (so putty.exe should be in path, or you should specify the full path of putty.exe).

enter image description here

Create a shortcut of CMDer with arguments:

<full-path-to-cmder.exe> /task Putty

Open it, and the Putty prompt shows. Load your session as usual, and it now shows in Cmder instead of putty, voila!

enter image description here

I knew such a common requirement has a solution in CMDER. Perfect!

Except that you have no control over the tab title, but we cannot ask for more...

EDIT:

I just found that we can specify the window title in Putty when we use Cmder, so now my solution becomes more than perfect.

In putty, we can set a window title in "Window" - "Behaviour", and in Cmder, we set the tab to use putty window title in "Main" - "Tab bar" - "Tab templates" - "Console" (%s represents the title, as shown in the tips above "Console".)

Another two screenshots:

enter image description here

enter image description here

2

As an alternative simply use SSH

ssh root@somehost

For example add the tools packaged with Git to your path

set PATH=%PATH%;C:\Program Files (x86)\Git\cmd

Or powershell path

# %UserProfile%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
# Add linux tools from git
$env:Path += ";C:\Program Files (x86)\Git\bin"

... And if going down that tangent consider only asking for your key passphrase once and Powershell with Posh git

KCD
  • 500
1

Single click? I think you are meaning "shortcut click".

So, change your shortcut properties.

Example 1

ConEmuC.exe /ATTACH /ROOT PuTTY.exe <your PuTTY switches>

Example 2

ConEmu.exe /single /cmd PuTTY.exe <your PuTTY switches>

Thought, you need to use full paths to executables.

Maximus
  • 20,835
0

AntonioCS has the correct link.

I was struggling with this too. The key is not to put the full path for putty in the conemu task command. Instead, make sure the path to putty is in your Windows, User profile environment variable, and then just call out putty by itself:

Putty.exe -new_console -load "(name of session)"
Vylix
  • 1,935
-2

Adding to KCD's answer, yet another option is using SSH under Cmder for Windows[http://cmder.net/], as shown in this article:

One needs only to type:

ssh user@hostname

A great advantage pointed in the article is that "Cmder is easy on the eyes, with attractive fonts, default Monokai color scheme, and resizable windows".

diegowcs
  • 99
  • 1
  • 4