Re: [opensuse] ssh -X localhost



On Fri, Sep 9, 2011 at 12:13 PM, phanisvara das <listmail@xxxxxxxxxxxxxx> wrote:
On Fri, 09 Sep 2011 21:38:44 +0530, Ken Schneider - openSUSE
<suse-list3@xxxxxxxxxxxxx> wrote:

On 09/09/2011 10:38 AM, Silviu Marin-Caea pecked at the keyboard and
wrote:

This doesn't work in 11.4 Tumbleweed:

ssh -X localhost
xclock
Error: Can't open display:

The same works on SLES11. What has changed, why isn't X forwarded
anymore and what's the "approved" way to do it now?


Do you have the sshd daemon enabled and running? If it is not running on
the host you cannot access ssh to the host.


works for me on 11.4, non-tumbleweed.


there are dozens of things that could be wrong. the sshd_config in
/etc/sshd could be set to not allow X forwarding for some reason, if
you did an inplace upgrade/overlay install and didn't change/reformat
/home, you could have a keys mismatch in ~/.ssh/known_hosts (could
nuke or edit the file and try again). those are the most likely
things I can think of to try/fix.

if you run xclock before you do the ssh command, does it work?
this seems like a very odd thing to be doing.


ssh -vvvv -X localhost might give some better clues as to what's
breaking down. my default install of 11.4 (just downloaded and
installed to a vm today) does not have sshd turned on by default, for
some reason.
--
Even the Magic 8 ball has an opinion on email clients: Outlook not so good.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: Partial SNAFUs - X11Forwarding etc.
    ... to the base server machine via SSH, or it it also supposed to protect ... back "up the line" to the client machine? ... the ssh server host is compromised or otherwise untrustworthy, ... refrain from running the program via ssh X11 forwarding - there's no ...
    (comp.security.ssh)
  • Re: Whats the deal on the -X vs -Y thing?
    ... As a quick fix you could use something like this as your remote ssh ... chain is compromised (eg at either the tty layer, X11 forwarding port ... forwarding would not be needed on the intermediate hosts. ...
    (comp.security.ssh)
  • Re: Openssh Port Forwarding Confusion
    ... >Now for my Port forwarding question. ... So far what I have extracted about ssh port ... You connect to a port on the SSH client. ...
    (comp.security.ssh)
  • Re: [SLE] export DISPLAY and xhost +
    ... >>impression that remote X using DISPLAY travels over ssh just because you ... > X11 and TCP forwarding ... the connection to the X11 display is auto­ ... and the connection to the real X server will be made from the ...
    (SuSE)
  • Re: ssh -X shop problem...
    ... somethings gone fubar in the X11 forwarding. ... When you "su" to gene on the X terminal, ... neither can he forward X over ssh. ... classic conditions, you'd use xhost to allow access from a remote host, ...
    (Fedora)