Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-27-2015, 08:31 PM   #1
Registered: Apr 2009
Posts: 390

Rep: Reputation: 3
Cannot execute GUI applications using 'ssh -Y user@remotehost'


I can execute GUI applications on a remote Ubuntu 12.04 computer from a Linux Mint 17.1 client by using the 'ssh -Y user@remotehost' command. However, when I try to do the same from the Ubuntu computer as client to the Linux Mint remotely, I get the following errors.

X11 connection rejected because of wrong authentication.
Error: cannot open display: localhost:10.0.

I would like to point out that I don't encounter ssh errors if I refrain from invoking GUI applications.

Any help from this forum will be much appreciated.

Old 03-28-2015, 01:58 AM   #2
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,391

Rep: Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765
Has X11Forwarding been enabled on the Linux Mint computer? Check the contents of /etc/ssh/sshd_config.
Old 03-28-2015, 08:16 AM   #3
Senior Member
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,139
Blog Entries: 2

Rep: Reputation: 261Reputation: 261Reputation: 261
What if you try
ssh -XY user@remotehost
1 members found this post helpful.
Old 03-28-2015, 04:10 PM   #4
Registered: Apr 2009
Posts: 390

Original Poster
Rep: Reputation: 3
Hi, allend and replica9000,

F11Forwarding has been enabled in /etc/ssh/sshd_config on my Linux Mint computer. Running 'ssh -XY user@remotehost' did not help ssh in executing a GUI program.

Thanks to your inspiration which led me to using meld to compare the two config files. I am attaching a screen image of meld's output. I hope you can find some meaningful information in it.

Many thanks again.

Attached Thumbnails
Click image for larger version

Name:	LMint-vs-Ubuntu.jpg
Views:	48
Size:	108.4 KB
ID:	17943  

Last edited by julianvb; 03-29-2015 at 09:31 PM. Reason: attaching image file


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with wrapper for ssh which execute ssh. jayantkp Linux - Newbie 4 05-28-2012 04:57 AM
problem of running windows GUI applications from SSH cryingbee Linux - General 4 03-05-2012 09:35 PM
[SOLVED] Can php script execute X11 applications? El Mago Programming 6 06-04-2010 10:44 AM
Hello, i connected a server by type 'ssh username@remotehost' in ubuntu's terminal sxluck Linux - Newbie 1 09-06-2009 03:36 PM
how can i execute applications with SH files ? HalkEkmek Ubuntu 1 02-16-2006 01:27 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration