Re: Cannot run X over ssh (it's fine now)



On 2011-09-29, Vahis <waxborg@xxxxxxxxxxxxxxxxx> wrote:
I _can_ and always have run X stuff over ssh on my 11.2 installation.

I maintain a machine remotely for a friend, have brought it from 11.3
to 11.4 remotely long ago.
At some point in the early days of 11.4 I _did_ run also X stuff there.

Otherwise the machine is just fine but now I just can't do X anymore.
I don't know for how long cos it's rare to need to.

$ssh -X
$ xclock
connect /tmp/.X11-unix/X0: No such file or directory
connect /tmp/.X11-unix/X0: No such file or directory
connect /tmp/.X11-unix/X0: No such file or directory
connect /tmp/.X11-unix/X0: No such file or directory
Error: Can't open display: localhost:10.0

Solution On the client (local) machine:

xhost +localhost

Then ssh -X remotemachine

Works :)

Vahis
--
http://waxborg.servepics.com
openSUSE 11.2 (x86_64) 2.6.31.14-0.8-default "Evergreen" main host
openSUSE 12.1 Beta 1 (x86_64) 3.1.0-rc6-2-desktop in VBox
openSUSE 11.4 (i586) 3.0.4-43-desktop "Tumbleweed" in EeePC 900
.



Relevant Pages

  • Re: SSH authentication keys setup
    ... people who compiled OpenSSH themselves before OpenSSH became part of ... Transfer id_dsa.pub to remotemachine in some way and then ... ...now you will be able to ssh from localmachine to remotemachine ... localmachine's authorized_keys2 so you can ssh from remotemachine to ...
    (comp.os.linux.misc)
  • Re: ssh: keep command running
    ... > I would like to login to a remote host via ssh, start a download ... password for scp or ssh. ... ...then you can ssh or scp to remotemachine without entering a password. ...
    (comp.os.linux.misc)
  • Re: X Terminal with local window manager
    ... If you set up the public and private keys correctly for ssh (ssh-keygen, ... "ssh -X remotemachine" is ... > It's a scripted response, ... One basic notion underlying Usenet is that it is a cooperative. ...
    (comp.os.linux.x)
  • Re: Configuring services for unusual ports
    ... On Sun, 12 Dec 2004 20:41:58 GMT, IANAL_VISTA staggered into the Black ... >> Ok, I'll bite, why is telnet such a bad idea? ... ssh encrypts the packets between the two systems. ... to remotemachine *without having to enter a password*. ...
    (comp.os.linux.misc)
  • Re: FTP and SSH file access question
    ... Did you mean, "On localmachine, I have the root password. ... > disabled from connecting to SSH. ... If you meant, "I have the root password for remotemachine, but I can't ...
    (comp.os.linux.misc)