Re: Problems with SSH and X11

From: Colin Watson (cjwatson_at_debian.org)
Date: 09/06/03

  • Next message: Ismael Valladolid Torres: "Re: Problems with SSH and X11"
    Date: Sat, 6 Sep 2003 16:41:46 +0100
    To: debian-user@lists.debian.org
    
    

    On Sat, Sep 06, 2003 at 05:30:19PM +0200, Mariano Kamp wrote:
    > mkamp@black:~$ ssh -X rock
    > The authenticity of host 'rock (192.168.0.1)' can't be established.
    > mkamp@rock's password:
    > Linux rock 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 GNU/Linux
    > [..] abbreviated
    > mkamp@rock:~$ echo $DISPLAY
    > [ void - just one blank line ]

    I bet you don't have xbase-clients installed on the remote system.

    > Besides that I have another thing with SSH bugging me. Maybe these issues
    > are related?

    No, they aren't.

    > When I try to copy something with scp from rock to black, like this:
    >
    > mkamp@rock:~$ scp foo mkamp@black:.
    > mkamp@black's password:
    > executing /etc/bash.bashrc
    > mkamp@rock:~$
    >
    > I just get the message that /etc/bash.bashrc has been executed, which is just
    > some debug message for me that this file bas been executed on rock.

    You shouldn't do it like that. This is a common mistake, but it breaks
    the scp protocol. Guard the debug message such that it only gets
    displayed for interactive shells, something like this:

      case $- in
        *i*)
          echo 'executing /etc/bash.bashrc'
          # other interactive stuff goes here, if you want
          ;;
      esac

    > I am also wondering why I have ssh and ssh2 on my machine.

    You installed them both, probably. ;)

    > Can I remove one of them? How? apt-get remove ssh?

    ssh2 wasn't properly maintained for a long time, is non-free, and has
    been removed from Debian. 'dpkg --purge ssh2' is probably what you want.

    Cheers,

    -- 
    Colin Watson                                  [cjwatson@flatline.org.uk]
    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Ismael Valladolid Torres: "Re: Problems with SSH and X11"

    Relevant Pages

    • Re: Running X without a videocard
      ... application on a machine that has no video card and display the result ... to make connections where I want to run X-clients. ... These run as a different user on the remote system. ... want to run the xterm on the remote system, ...
      (freebsd-questions)
    • Re: X11 forwarding with SSH1 / SSH2
      ... > announced SSH-1.5 it wouldn't be willing to speak SSH2. ... > need to pick out the lines that correspond to the value of $DISPLAY. ... > If you run those commands on both the SSH client and SSH server ... [thomasn@growl thomasn]$ echo $DISPLAY ...
      (comp.security.ssh)
    • RE: Cannot display Custom Error Page
      ... > the error page from a remote system. ... >> does not display this page whenever an unhandled exception is thrown. ... >> to the filename of the custom error page, ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Starting X-windows application on remote system
      ... And try to start your app (do not specify display). ... will assume your local one (from where you started ssh). ... > appear on the display of the remote system and be controlled by the ... > the X-windows output pushed back to my system, ...
      (comp.windows.x)
    • Re: Serial driver
      ... step by step debugging using Multi Ice It prints the debug message from ... only but not from EdbgOutputDebugString(). ... is my code for printing the string. ... doesnot display any message. ...
      (microsoft.public.windowsce.platbuilder)