Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 22/11/2013, à 22:37

lambertmular

Probleme connexion VNC via tunnel SSH

Bonjour,

Je suis sur ubuntu 12.04 et je voudrais me connecter ac VNC via tunnel SSH pour controler une machine egalement sur Ubuntu 12.04. Je parviens déjà à me connecter par SSH à cette machine avec la simple commande

ssh -CX "user"@"password"

mais en suivant les différentes documentation (notamment remmina http://community.linuxmint.com/tutorial/view/83), je ne parviens pas a me connecter ac VNC. J'ai déjà coché l'option dans la machine serveur "permettre les connexions a distance".
Quelqu'un pour m'aider s'il vous plaît?

Hors ligne

#2 Le 23/11/2013, à 07:44

Didier-T

Re : Probleme connexion VNC via tunnel SSH

Bonjour lambertmular,
je peux te proposer un excellent tuto, à suivre simplement point par point
Tuto ljere vnc

Hors ligne

#3 Le 23/11/2013, à 12:41

lambertmular

Re : Probleme connexion VNC via tunnel SSH

J'avais déjà essaye avec x11vnc mais j’ai un message d’erreur quand je le lance

x11vnc -ncache 10 -rfbauth ~/.vnc_passwd -forever
23/11/2013 10:31:32 passing arg to libvncserver: -rfbauth
23/11/2013 10:31:32 passing arg to libvncserver: /home/lannebere/.vnc_passwd
23/11/2013 10:31:32 x11vnc version: 0.9.12 lastmod: 2010-09-09  pid: 12348
23/11/2013 10:31:32 
23/11/2013 10:31:32 WARNING: DISPLAY starts with localhost: 'localhost:10.0'
23/11/2013 10:31:32 WARNING: Is this an SSH X11 port forwarding?  You most
23/11/2013 10:31:32 WARNING: likely don't want x11vnc to use that DISPLAY.
23/11/2013 10:31:32 WARNING: You probably should supply something
23/11/2013 10:31:32 WARNING: like: -display :0  to access the physical
23/11/2013 10:31:32 WARNING: X display on the machine where x11vnc is running.
23/11/2013 10:31:32 
23/11/2013 10:31:32 Using X display localhost:10.0
23/11/2013 10:31:32 rootwin: 0xb2 reswin: 0x4600001 dpy: 0x1995da0
23/11/2013 10:31:32 
23/11/2013 10:31:32 ------------------ USEFUL INFORMATION ------------------
23/11/2013 10:31:33 X DAMAGE available on display, using it for polling hints.
23/11/2013 10:31:33   To disable this behavior use: '-noxdamage'
23/11/2013 10:31:33 
23/11/2013 10:31:33   Most compositing window managers like 'compiz' or 'beryl'
23/11/2013 10:31:33   cause X DAMAGE to fail, and so you may not see any screen
23/11/2013 10:31:33   updates via VNC.  Either disable 'compiz' (recommended) or
23/11/2013 10:31:33   supply the x11vnc '-noxdamage' command line option.
23/11/2013 10:31:33 
23/11/2013 10:31:33 Wireframing: -wireframe mode is in effect for window moves.
23/11/2013 10:31:33   If this yields undesired behavior (poor response, painting
23/11/2013 10:31:33   errors, etc) it may be disabled:
23/11/2013 10:31:33    - use '-nowf' to disable wireframing completely.
23/11/2013 10:31:33    - use '-nowcr' to disable the Copy Rectangle after the
23/11/2013 10:31:33      moved window is released in the new position.
23/11/2013 10:31:33   Also see the -help entry for tuning parameters.
23/11/2013 10:31:33   You can press 3 Alt_L's (Left "Alt" key) in a row to 
23/11/2013 10:31:33   repaint the screen, also see the -fixscreen option for
23/11/2013 10:31:33   periodic repaints.
23/11/2013 10:31:33 
23/11/2013 10:31:33 XFIXES available on display, resetting cursor mode
23/11/2013 10:31:33   to: '-cursor most'.
23/11/2013 10:31:33   to disable this behavior use: '-cursor arrow'
23/11/2013 10:31:33   or '-noxfixes'.
23/11/2013 10:31:33 using XFIXES for cursor drawing.
23/11/2013 10:31:33 GrabServer control via XTEST.
23/11/2013 10:31:35 
23/11/2013 10:31:35 Scroll Detection: -scrollcopyrect mode is in effect to
23/11/2013 10:31:35   use RECORD extension to try to detect scrolling windows
23/11/2013 10:31:35   (induced by either user keystroke or mouse input).
23/11/2013 10:31:35   If this yields undesired behavior (poor response, painting
23/11/2013 10:31:35   errors, etc) it may be disabled via: '-noscr'
23/11/2013 10:31:35   Also see the -help entry for tuning parameters.
23/11/2013 10:31:35   You can press 3 Alt_L's (Left "Alt" key) in a row to 
23/11/2013 10:31:35   repaint the screen, also see the -fixscreen option for
23/11/2013 10:31:35   periodic repaints.
23/11/2013 10:31:35 
23/11/2013 10:31:35 Client Side Caching: -ncache mode is in effect to provide
23/11/2013 10:31:35   client-side pixel data caching.  This speeds up
23/11/2013 10:31:35   iconifying/deiconifying windows, moving and raising
23/11/2013 10:31:35   windows, and reposting menus.  In the simple CopyRect
23/11/2013 10:31:35   encoding scheme used (no compression) a huge amount
23/11/2013 10:31:35   of extra memory (20-100MB) is used on both the server and
23/11/2013 10:31:35   client sides.  This mode works with any VNC viewer.
23/11/2013 10:31:35   However, in most you can actually see the cached pixel
23/11/2013 10:31:35   data by scrolling down, so you need to re-adjust its size.
23/11/2013 10:31:35   See http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching.
23/11/2013 10:31:35   If this mode yields undesired behavior (poor response,
23/11/2013 10:31:35   painting errors, etc) it may be disabled via: '-ncache 0'
23/11/2013 10:31:35   You can press 3 Alt_L's (Left "Alt" key) in a row to 
23/11/2013 10:31:35   repaint the screen, also see the -fixscreen option for
23/11/2013 10:31:35   periodic repaints.
23/11/2013 10:31:35 
23/11/2013 10:31:35 XKEYBOARD:
23/11/2013 10:31:35 Switching to -xkb mode to recover these keysyms:
23/11/2013 10:31:35    xkb  noxkb   Keysym  ("X" means present)
23/11/2013 10:31:35    ---  -----   -----------------------------
23/11/2013 10:31:35     X           0x40  at
23/11/2013 10:31:35     X           0x23  numbersign
23/11/2013 10:31:35     X           0x5b  bracketleft
23/11/2013 10:31:35     X           0x5d  bracketright
23/11/2013 10:31:35     X           0x7b  braceleft
23/11/2013 10:31:35     X           0x7d  braceright
23/11/2013 10:31:35     X           0x7c  bar
23/11/2013 10:31:35     X           0x5c  backslash
23/11/2013 10:31:35 
23/11/2013 10:31:35   If this makes the key mapping worse you can
23/11/2013 10:31:35   disable it with the "-noxkb" option.
23/11/2013 10:31:35 
23/11/2013 10:31:35 
23/11/2013 10:31:35 X FBPM extension not supported.
23/11/2013 10:31:35 X display is capable of DPMS.
23/11/2013 10:31:35 --------------------------------------------------------
23/11/2013 10:31:35 
23/11/2013 10:31:35 Default visual ID: 0x23
23/11/2013 10:31:53 Read initial data from X display into framebuffer.
23/11/2013 10:31:53 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5760
23/11/2013 10:31:53 
23/11/2013 10:31:53 X display localhost:10.0 is 32bpp depth=24 true color
23/11/2013 10:31:53 
23/11/2013 10:31:53 Autoprobing TCP port 
23/11/2013 10:31:53 Autoprobing selected port 5900
23/11/2013 10:31:53 Listening also on IPv6 port 5900 (socket 11)
23/11/2013 10:31:53 
23/11/2013 10:31:53 Xinerama is present and active (e.g. multi-head).
23/11/2013 10:31:53 Xinerama: number of sub-screens: 1
23/11/2013 10:31:53 Xinerama: no blackouts needed (only one sub-screen)
23/11/2013 10:31:53 

X11 MIT Shared Memory Attach failed:
  Is your DISPLAY=localhost:10.0 on a remote machine?
  Note:   DISPLAY=localhost:N suggests a SSH X11 redir to a remote machine.
  Suggestion, use: x11vnc -display :0 ... for local display :0

caught X11 error:
23/11/2013 10:31:53 deleted 45 tile_row polling images.
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  146 (MIT-SHM)
  Minor opcode of failed request:  1 (X_ShmAttach)
  Serial number of failed request:  52
  Current serial number in output stream:  99

Hors ligne

#4 Le 23/11/2013, à 13:08

jplemoine

Re : Probleme connexion VNC via tunnel SSH

Voir la doc suivante : cliquer ici.
Il y aurait un paramètre dans la commande ssh qui permet de rediriger le port "vnc" (-L).


Membre de l'ALDIL (Association Lyonnaise pour le Développement de l'Informatique Libre)
- En pro, après 20 ans de développement, administrateur Linux / Unix depuis Avril 2019.
- En privé, sous Ubuntu-Xubuntu depuis 2009.

Hors ligne

#5 Le 30/09/2015, à 20:56

Compte supprimé