← Back to team overview

desktop-packages team mailing list archive

[Bug 764632] Re: The "Use SSH tunnel" option doesn't work

 

I've tracked down the problem. A patch is attached for the Oneiric
package. The issue is that ssh enumerates and closes its file
descriptors before opening /dev/tty, so the PTY slave is temporarily
closed and thus an EIO is delivered to the PTY master in read(). The
solution is to keep the slave open in the vinagre process until ssh has
opened the terminal. I have also sent the patch to upstream.

(Note that this only addresses the regression where ssh tunneling
started failing every time. There is a pre-existing race issue where ssh
sometimes receives a SIGHUP after the user enters their password, but it
is unrelated and this patch does not address it.)

** Patch added: "vinagre-fix-ssh-tunneling-eio-when-slave-temporarily-closed.debdiff"
   https://bugs.launchpad.net/ubuntu/+source/vinagre/+bug/764632/+attachment/2548920/+files/vinagre-fix-ssh-tunneling-eio-when-slave-temporarily-closed.debdiff

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to vinagre in Ubuntu.
https://bugs.launchpad.net/bugs/764632

Title:
  The "Use SSH tunnel" option doesn't work

Status in Vinagre: VNC client for GNOME:
  Confirmed
Status in “vinagre” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: vinagre

  I get this message:

  Error creating the SSH tunnel
  Error reading from Unix: Input/output error

  I've had this problem in the past but it usually worked if I simply
  retried the connection. Now it happens every time and it won't
  establish the ssh tunnel.

  If I connect to the tunnel host with ssh from the command line that
  works fine, also if I create the tunnel with:

  $ ssh -L5999:h1:5901 me@xxxxxxxxxxxxxxxxxx

  it also works fine when I then connect to localhost:5999 in vinagre.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: vinagre 2.30.3-1ubuntu2
  ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
  Uname: Linux 2.6.38-8-generic i686
  Architecture: i386
  Date: Mon Apr 18 14:33:11 2011
  ExecutablePath: /usr/bin/vinagre
  InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427.1)
  ProcEnviron:
   LANGUAGE=en_GB:en
   PATH=(custom, user)
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  SourcePackage: vinagre
  UpgradeStatus: Upgraded to natty on 2011-04-18 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/vinagre/+bug/764632/+subscriptions