Solved

can't run mysql workbench

Posted on 2011-03-10
8
1,661 Views
Last Modified: 2013-12-16
Hi

I am connecting to a linux virtual machine from a windows xp machine via cygwin/x

mysql workbench wont start and i dont know what to do as I know nothing about x11 or xwin

:~# /usr/bin/mysql-workbench
** Message: Gnome keyring daemon seems to not be available. Stored passwords will be lost once quit
X11 connection rejected because of wrong authentication.

(mysql-workbench-bin:4438): Gtk-WARNING **: cannot open display: localhost:17.0


thanks
0
Comment
Question by:andieje
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 9

Expert Comment

by:AriMc
ID: 35099437
Are you connecting from cygwin/x to the virtual Linux via SSH?

If so, have you enabled X-forwarding with the command line option -X?

0
 

Author Comment

by:andieje
ID: 35100335
yes i connect with ssh -X
0
 

Author Comment

by:andieje
ID: 35100415
i tried almost everything in this link

http://www.cyberciti.biz/faq/x11-connection-rejected-because-of-wrong-authentication/

the ssh_config file did not have ForwardX11 yes. I added this line but it made no difference

I didnt do this line as i didnt know what it meant
ssh -X user@remote.box.example.com xeyes
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

Accepted Solution

by:
andieje earned 0 total points
ID: 35100558
this solved the problem

i) adding ""ForwardX11Trusted yes" to your .ssh/config and/or invoking ssh as
ssh -Y

0
 
LVL 9

Expert Comment

by:AriMc
ID: 35100601
Ok good, checking the X-forwarding permissions in the SSH-daemon configuration would've probably come next to my mind. :)

0
 

Author Comment

by:andieje
ID: 35100618
i don't know what any of these things mean. I'm a linux beginner. i dont know what x11 is or x forwarding of the difference between ssh -X and ssh -Y
0
 
LVL 9

Expert Comment

by:AriMc
ID: 35100769
When you start an application on a remote X-window server (like in your case), the server attempts to open a connection back to your local workstation. This connection is needed to open the application window on your workstation.

Normally in a local network this works fine. When you are connecting to a remote server with SSH things get tricky because there usually are several firewalls between you and the server preventing the connection. The SSH options -X and -Y are ways to overcome this. The basic option -X forwards calls from your remote X-server to your local workstation through the encrypted SSH-tunnel, but because of historical reasons, newer versions require more configuration to secure both ends of the communication from attackers. For this reason a more relaxed option -Y has been introduced to override those restrictions.

It's a bit complicated in all but that's because we live in a constant combat between users and illicit hackers.

0
 

Author Closing Comment

by:andieje
ID: 35135906
i solved the problem myself
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
LINUX Field Separators 7 79
python - find anything after $ question. 9 84
Unbreakable Oracle Linux 6.8 installation problem 9 64
comm diff cmp unix commands 2 18
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question