rheostat2718 / conemu-maximus5

Automatically exported from code.google.com/p/conemu-maximus5
7 stars 1 forks source link

Problem with PuTTY and KiTTY #1863

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
**Required information**
OS version: Win8.1 x64
ConEmu version: 141221 (both x86 and x64)
Far version: none

**Description**
I tried to attach a putty session through a new task, following the steps in 
this post:
http://www.thecrumb.com/2013/03/04/configuring-conemu-and-putty/

The task just opens an empty tab. A putty.exe/kitty.exe also appears in Windows 
task manager.
Depending on the parameters, this happens:
1. If I use -load option, a little black command-prompt-like window briefly 
appears, then disappears and the tab closes itself. It seems empty but can't 
assure it since it's alive a fraction of a second.
2. If I don't use -load, the PuTTY tabs appear in ConEmu and it's empty. If I 
select any of my other tabs and the select back the PuTTY tab, it shows this 
message:
-----------------------------------------------------------
| GUI application (PID=xxxxx) was attached to ConEmu:
| C:\path\to\kitty.exe
-----------------------------------------------------------
where xxxxx are typical random PID numbers.
After some seconds, PuTTY tab closes itself.

**What I have tried (to no avail, obviously)**
Sessions are working fine opening them through putty/kitty itself.
Different versions of ConEmu, in x86 and x64 flavors.
Different versions of PuTTY.
Also tried KiTTY with exactly same troubles.
Run everything as administrator.
Completely disable Antivirus.

I think it's worth to mention that I actually had two different putty sessions 
in two different ConEmu tasks (one pointing to a web hosting and another one 
pointing to my own VirtualBox machine), and both worked fine. And then all of a 
sudden, they stopped working. Can't remember if I did something that actually 
could affect ConEmu or PuTTY but I'd say I didn't. Maybe a Windows update could 
screw all up? Do you know of any known issues with Windows updates?

**Steps to reproduction**
1. Open ConEmu
2. Create task for putty/kitty
3. Try to open such task
4. The above-mentioned problems appears (see description above)

I'll attach my ConEmu.xml settings file. It's the file created after clicking 
"Reset..." button inside ConEmu settings. I mean, it's pretty much the 
"default" settings, so I don't know if it will be useful.

BTW, does anyone know a workaround? I have Powershell and when I type 'ssh', it 
seems that it has installed some kind of ssh client. Does anyone know if there 
is some way to 'automatize' it in ConEmu to open a specific user@server:port 
and such?

Original issue reported on code.google.com by migmol...@gmail.com on 12 Jan 2015 at 1:38

Attachments:

GoogleCodeExporter commented 8 years ago
Attach LogFiles when you are trying to run these tasks.

PuTTY and KiTTY are ChildGui. If they were not attached or started properly 
that means they were failed to do something. Run ProcessMonitor and compare 
logs when you run them in ConEmu and from simple Win+R.

Last note. Plink is native console app with PuTTY functionality.

Original comment by ConEmu.Maximus5 on 12 Jan 2015 at 1:46

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Ok, here we go.
1. I opened ConEmu at around 3:02:00 (hh:mm:ss). The default {cmd} task got 
open.
2. I waited until 3:05:00 approximately to open the {KiTTY} task.
3. It did its stuff and closed at about 3:05:13.
4. I waited to close ConEmu until 3:05:22.

Hope it helps you to dive into the logs.

And thanks for your reply, of course :)
I'll give Plink a try as a workaround until I find a better (if possible) 
solution. Or did you mean I can attach Plink into ConEmu as well?

Original comment by migmol...@gmail.com on 12 Jan 2015 at 2:20

Attachments:

GoogleCodeExporter commented 8 years ago
You don't need to ATTACH any console app to ConEmu! Just run them.

In fact running ChildGui is supplementary option because of their own drawing 
system.

Screenshots may help to understand your problem too.

Original comment by ConEmu.Maximus5 on 12 Jan 2015 at 2:26