Re: problem to connect by ssh in graphic mode session

From: Douglas Ward (dwdraw_at_bellsouth.net)
Date: 08/20/04

  • Next message: Kent West: "Re: OT: Which tool, and how, to get partial string from file?"
    Date: Fri, 20 Aug 2004 17:13:21 -0400
    To: debian-user@lists.debian.org
    
    

    vjimenez@coopeservidores.fi.cr wrote:

    >How i take control to my server with ssh in graphic mode, what command i
    >need to use?
    >my computer and my server used debian
    >
    >thank you for all your help
    >
    >
    >
    >

    I recently updated my remote access setup.
    You want vnc tunneled through ssh. (There is even a Java applet that
    will tunnel vnc's rfb over ssh; I wish that had existed when I first
    setup vnc years ago.)
    Here is the general setup. Read the documentation at the links I
    include for specific options (e.g. resolution settings and ways to
    improve latency.)

    I have split this into two sections:
    I) Server options
    II) Client options

    I. Server Options:
    1) Access a desktop that is currently in use (i.e., access display :0,
    including the X login screen)
    Issue: The console display is left open and visible when you are
    remotely using the display.

    2) Access a desktop that runs as its own instance (i.e., have a desktop
    dedicated to remote access)
    Issue: You have to start and stop vncserver each time you want to run a
    desktop as the same user at the console.

    1)
    Requires: packages from unstable (or testing)
    vnc4server < http://realvnc.com >
    +modification to /etc/X11/XF86Config-4 < http://realvnc.com/v4/x0.html >
    x11vnc (optional) < http://www.karlrunge.com/x11vnc/ >

    XF86Config-4:
    add to section "Module"

    ---
    Load   "vnc"
    ---
    add to section "Screen"
    ---
    Option "passwordFile" "/home/<your_username>/.vnc/passwd"
    ---
    The password file will be automatically created by the Debian vnc4server 
    once manually run.  If it's not used, no password will be required for 
    naked vnc access.  (That works if you disable incoming requests for vnc 
    ports by firewall, subsequently requiring ssh for remote vnc.)
    Before connecting, run vnc4server through the command line so that your 
    password will be setup.
    If you don't want to use vnc4server, you can use the less-efficient x11vnc.
    x11vnc -display :0 -many
    2)
    Requires: packages from stable (or testing--optional)
    vncserver < realvnc.com >
    tightvncserver (from testing/unstable--better than vncserver) < 
    tightvnc.com >
    Java client applet from < tightvnc.com > (optional for naked access)
    +creation of:
    ~/.xsession < http://www-ugrad.cs.colorado.edu/X/xsession.html >
    ~/.vnc/xstartup (make a copy of .xsession)
    Call vncserver (or tightvncserver) from the command line to start a 
    remote desktop.  If you want to be able to access naked vnc from the 
    web, vncserver will run its own http daemon if you specify
    vncserver -httpd /full/path/to/downloaded/Java/applet/directory/
    google for .xsession.  A usable xsession file can be as simple as one 
    with the line
    ---
    exec gnome-session
    ---
    OR
    ---
    exec startkde
    ---
    II. Client options
    1) Local clients
    Each client will use a vnc binary (e.g., vncviewer from < tightvnc.com 
     >, or krdc for KDE) and an ssh binary (e.g. PuTTY or OpenSSH).
    Open ssh, and tunnel port 590x, where x is the display number used for vnc.
    Open a vnc viewer, and connect to localhost.
    2) Remote clients served via Java applets
    Each client will go to a web site and use a Java applet ssh/vnc viewer.
    A) Go to < http://www.sshtools.com/ > :: Download :: SourceForge Project 
    page
    Download SSHVnc-Applet
    (You might also want to look at the SSHTerm-Applet.  The SSH applet is 
    the second Windows-compatible GPL program I know of with a GUI for sftp 
    that allows for public-key authentication [WinSCP is the first, and 
    FileZilla might allow for it soon].)
    B) Unpack the package into a web-visible directory. 
    C) Make the applet available.
    a. Use apache or a Web host and load the applet by using < 
    http://myaddress/sshvnc-applet/ >. (Works with server option two.)
    b. Use the vncserver http daemon.  vncserver -httpd 
    /dir/to/sshvnc/Java/applet/  (I haven't gotten this to work, but it 
    might be possible if you make a file similar to the index.vnc the 
    vncserver expects.)  Connect using http://myaddress:580x.
    c. For insecure, naked vnc without needing an external web server, use 
    server option 2 and simply append -httpd /dir/to/Java/applet/ before 
    issuing the server command.  Connect using http://myaddress:580x.  This 
    applet is tied to accessing only your server, unlike the ssh-enabled applet.
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Kent West: "Re: OT: Which tool, and how, to get partial string from file?"

    Relevant Pages

    • Re: SBS Offer Remote Assistance Not Working
      ... I'm still curious about why Remote Access wont work correctly. ... Assist my server to get as far as listing usernames... ... But thank you again for the VNC reference and I'll keep you informed If / ... You'll need to install the VNC service on the target ...
      (microsoft.public.windows.server.sbs)
    • Re: how to start up vncserver w/o login?
      ... because it seems vnc is unavoidably unacceptably slow. ... a remote machine without any local user having logged in on the remote ... the remote user has not yet logged in provided X on the server is running. ... The!M client on my box logs me in to the server and gives me an X session. ...
      (Fedora)
    • Re: [SLE] How to: start only vnc server without local X instance - Suse 9.0 ?
      ... >> I'd like to have only vnc server to server X windows to remote vnc ... > with them from the keyboard, display and mouse of a remote site, then you ...
      (SuSE)
    • Re: [SLE] How to: start only vnc server without local X instance - Suse 9.0 ?
      ... > I'd like to have only vnc server to server X windows to remote vnc ... with them from the keyboard, display and mouse of a remote site, then you ...
      (SuSE)
    • applet security and external URLs
      ... So far for testing I've been using a file residing on the same host where I'm working (this host is also an apache web server). ... I'm invoking the HTML page calling the applet either from appletviewer or firefox. ... Now I wanted to use a file on a remote host. ...
      (comp.lang.java.programmer)