Mailinglist Archive: opensuse (2974 mails)

< Previous Next >
Re: Re: [SLE] Invalid MIT-MAGIC-COOKIE-1 key
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Actually.... :-)

Using xhost is way way wrong.

The correct way of doing things is:

On your local machine do

xauth list mymachine.mydomain.com:0.0

and you get a reply:

mymachine.mydomain.com:0 MIT-MAGIC-COOKIE-1 37cb47264b485cd2e24ef9421def2a83

Then, on your remote machine do:

xauth add mymachine.mydomain.com:0 MIT-MAGIC-COOKIE-1 37cb47264b485cd2e24ef9421def2a83

That's all.

Your key shouldn't change that often, but when it does, just issue on the
remote machine:

xauth remove mymachine.mydomain.com:0

before you add the new key.

Happy remote X-ing :-)

- -tosi


Þann fimmtudagur 01 febrúar 2001 21:29 skrifaðir þú:
> > Actually....
> >
> > Thats the way I have always had to do it....Why it happens that I can
> > only guess at a security feature (I am taking a guess that it maybe to
>
> do
>
> > with the video group 0660 and maybe not letting anyone outside of it
> > attaching to the X process). I have little idea what has changed in your
> > case...Did you run any updates? Its a security mechanism, do this in a
> > in your terminal screen man xhost.
> >
> > Try my suggestion as I get the same as you do when I do not do the xhost
> > command.
>
> <snip>
>
> > > > Do you log in a user on the system? If so, are
> > >
> > > you running a program
> > >
> > > > via root through a terminal in your X sessions?
> > >
> > > If you are trying to
> > >
> > > > run a program via root then you need to do this
> > >
> > > as the user who
> > >
> > > > started the X sessions:
> > > >
> > > > xhost +localhost
> > > >
> > > > Then you can go in as root and eun your
> > >
> > > program.
>
> This also happened to me. One of the IT support folk at work showed me
> how to get round it using basically the same fix as suggested. The only
> difference was in a konsole that was _not root_ I had to type:
>
> prompt> export DISPLAY=<IP address of machine or machine name>:0
> prompt> xhost +localhost
>
> for this to work.
>
> Hope this helps, but please ignore if of no use as I am complete novice.
>
> Mark

- --
______
/---------------------------------------\ \
| Þór Sigurðsson | Tor Sigurdsson | t |
| Netmaður | Network Specialist | o |
|-----------------------------------------| s |
| tosi@xxxxxxxxx | i |
\---------------------------------------/_____/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1e-SuSE (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6eeU06mRH+PEpr2YRApEqAKCSQyZ48pty9NlCpgG2blU/5bccuwCeIwbP
9jgIHUbkaup5jokB6DaQeMM=
=WaMN
-----END PGP SIGNATURE-----

< Previous Next >
Follow Ups
References