Argon
Argon

Reputation: 435

Conemu with x-forwarding

I currently am using Cmder (which is effectively conemu) to SSH into a university cluster from my Windows machine. I want to enable x-forwarding, and I have Xming installed. I followed the instructions here, which I swear I've used before but doesn't seem to work right now. Specifically, I type

DISPLAY=localhost:0.0;export DISPLAY;

once I open up a Cmder terminal (with Xming already loaded), but the error I get back is

Error: cannot open display: localhost:0.0

despite Xming saying it is Xming server:0.0. Any suggestions? I should add that the x-forwarding works perfectly fine with MobaXterm, but I'd prefer to stick with Cmder.

Upvotes: 3

Views: 6145

Answers (4)

Christopher Markieta
Christopher Markieta

Reputation: 5913

The following worked for me:

export DISPLAY=127.0.0.1:0
ssh -XC <hostname>

Upvotes: 0

Argon
Argon

Reputation: 435

The issue was that I was setting the display variable on the client server, not the host computer. On my Windows machine, I opened Xming and then did

set DISPLAY=127.0.0.1:0.

Afterwards, I SSH'd into the client server via

ssh -X myname@address.

Now everything works as intended.

Upvotes: 3

Renaud
Renaud

Reputation: 1300

I made it work for me.

Even so Xming was telling me "localhost:0.0", after connecting to the my server (using the "-x" ssh's option) I rather did :

DISPLAY=:10.0;export DISPLAY;

Upvotes: 0

AgentCormac
AgentCormac

Reputation: 29

I have exactly the same problem. However, I have observed that if I open up a Putty session with x11 forwarding set, then add the display number to my ConEmu session that is ssh'd into the Linux box, then x11 works from ConEmu. Weird.

It is an inconvenient workaround at best.

Upvotes: 0

Related Questions