Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: ssh x11 forwarding error

  1. #1
    Join Date
    Jul 2010
    Location
    Puerto Rico
    Beans
    7
    Distro
    Ubuntu 10.04 Lucid Lynx

    ssh x11 forwarding error

    Hello!!

    Every time I try to run a program over X11 and SSH, I receive these messages:

    root@d1sweb:/# gedit
    X11 connection rejected because of wrong authentication.

    (gedit:6069): Gtk-WARNING **: cannot open display: localhost:14.0
    root@d1sweb:/# firefox
    X11 connection rejected because of wrong authentication.
    X11 connection rejected because of wrong authentication.
    Error: cannot open display: localhost:14.0

    What can I do to fix this problem?

    Thank you!

  2. #2
    nmaster is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Jun 2009
    Beans
    718

    Re: ssh x11 forwarding error

    i'm assuming that you used "ssh -X". maybe try "ssh -Y".

  3. #3
    Join Date
    Jul 2010
    Beans
    2

    Re: ssh x11 forwarding error

    i have same problem too, please help.

  4. #4
    nmaster is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Jun 2009
    Beans
    718

    Re: ssh x11 forwarding error

    Quote Originally Posted by jennyrule View Post
    i have same problem too, please help.
    so you get the same error with the -Y option? maybe you should talk to the sys admin of the system. there could be a lot of things going on.

  5. #5
    Join Date
    Jul 2010
    Location
    Puerto Rico
    Beans
    7
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: ssh x11 forwarding error

    Quote Originally Posted by neal.m.master View Post
    i'm assuming that you used "ssh -X". maybe try "ssh -Y".

    Yes, I am using ssh -X, but actually I tried with ssh -Y and I obtained the same error.


    roxely@dpack02-laptop:~$ ssh -Y roxely@system.edu
    roxely@system.edu's password:
    Linux system 2.6.32-22-server #36-Ubuntu SMP Thu Jun 3 20:38:33 UTC 2010 x86_64 GNU/Linux
    Ubuntu 10.04 LTS

    Welcome to the Ubuntu Server!
    * Documentation: http://www.ubuntu.com/server/doc
    Last login: Fri Jul 2 17:53:47 2010 from dpack02
    /usr/bin/xauth: timeout in locking authority file /home/roxely/.Xauthority
    $ firefox
    X11 connection rejected because of wrong authentication.
    X11 connection rejected because of wrong authentication.
    Error: cannot open display: localhost:10.0
    $


    thank you

  6. #6
    nmaster is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Jun 2009
    Beans
    718

    Re: ssh x11 forwarding error

    well, like i mentioned. there could be a lot of causes. i'd suggest starting with these potential fixes: http://www.cyberciti.biz/faq/x11-con...uthentication/

    just so you know, that link was the first link listed by google when i searched:"X11 connection rejected because of wrong authentication." if you already tried these, you should let people know so that we don't waste time. if you haven't tried the link, then you should try consulting google before starting a thread.
    Last edited by nmaster; July 2nd, 2010 at 09:44 PM.

  7. #7
    Join Date
    Jul 2010
    Location
    Puerto Rico
    Beans
    7
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: ssh x11 forwarding error

    Quote Originally Posted by neal.m.master View Post
    well, like i mentioned. there could be a lot of causes. i'd suggest starting with these potential fixes: http://www.cyberciti.biz/faq/x11-con...uthentication/

    just so you know, that link was the first link listed by google when i searched:"X11 connection rejected because of wrong authentication." if you already tried these, you should let people know so that we don't waste time. if you haven't tried the link, then you should try consulting google before starting a thread.
    Neal.m.master:

    If I post in this forum my problem is because I really need help. I am a beginner with Ubuntu.I tried all the solutions I found on google and none worked. So that's why I came to this forum.

    Sorry If I made waste your time,

    thank you!

  8. #8
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: ssh x11 forwarding error

    Quote Originally Posted by roxely View Post
    Neal.m.master:

    If I post in this forum my problem is because I really need help. I am a beginner with Ubuntu.I tried all the solutions I found on google and none worked. So that's why I came to this forum.

    Sorry If I made waste your time,

    thank you!
    Is it working now ?
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  9. #9
    nmaster is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Jun 2009
    Beans
    718

    Re: ssh x11 forwarding error

    Quote Originally Posted by roxely View Post
    Neal.m.master:

    If I post in this forum my problem is because I really need help. I am a beginner with Ubuntu.I tried all the solutions I found on google and none worked. So that's why I came to this forum.

    Sorry If I made waste your time,

    thank you!
    i didn't mean to sound like a jerk. you're not wasting my time. sometimes people get a little bit flustered and immediately ask for help. sorry!

    ... and does the "thank you!" mean that it works now? what fixed it?

  10. #10
    Join Date
    Jul 2010
    Location
    Puerto Rico
    Beans
    7
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: ssh x11 forwarding error

    Quote Originally Posted by neal.m.master View Post
    i didn't mean to sound like a jerk. you're not wasting my time. sometimes people get a little bit flustered and immediately ask for help. sorry!

    ... and does the "thank you!" mean that it works now? what fixed it?

    Ok, Don't worry Neal! Guys "Thank you!" it was just a thanks for your responses, but lamentably my problem continues. I am asking for help because I am a beginner computer engineering and now I am working in a summer internship project and this error that I don't know how to fix is making me delay.

    So I have tried all of these commands:

    1- Set forwardX11=yes

    2- setenv DISPLAY host_name:0.0

    3- DISPLAY = host_name:0.0;export DISPLAY

    4- rm.Xauthority
    touch.Xauthority
    chmod 600.xauthority

    5- ls -l ~/.xauthority
    sudo chown roxely.xauthoriy
    ls -l .xauthority
    chmod 755 .xauthority

    I think I have tried a lot of solutions but none worked to me. Do you guys have any idea?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •