Re: PuTTY for tunnelling with no window?

From: Andrew Schulman (andrex_at_deadspam.com)
Date: 09/28/04


Date: Tue, 28 Sep 2004 11:52:55 -0400


> By way of context, I've been using OpenSSH with ssh-agent and ssh
> tunnelling started from a Cygwin bash window, and shutting them down
> using kill in Cygwin. However, my latest Cygwin upgrade doesn't let
> me detach them from the Cygwin window and creates zombie windows if I
> forget and exit before shutting down the processes. This motivated me
> to switch to PuTTY; I like the switch so far.

As an alternative, consider using autossh + OpenSSH in Cygwin. autossh
starts and maintains an ssh connection, restarting it if it stops
passing data. You can set it up to run as a system service, which will
then automatically establish your tunnels unattended at boot time. Of
course, in order for that to work you'll need to provide either an ssh-
agent or an unencrypted (passwordless) key, but that is always true for
unattended logins.

Once you've set this up, you won't see any console windows, and in fact
you won't have to think about your tunnel at all. It will just be there
working from boot. For details see usr/share/doc/autossh/README.Cygwin.

Andrew.

-- 
To reply by email, change "deadspam.com" to "alumni.utexas.net"


Relevant Pages

  • Re: Running ssh under cygwin
    ... I tried ssh-keygen -t rsa in a cygwin window. ... I tried logging into the computer as administrator. ... I tried this with 1) installing cygwin as user i.e. ... Before futzing around with write permissions, I'd take a look at the exact ...
    (alt.os.linux.redhat)
  • Re: cygwin issues using less in bash
    ... responds appropriately, even when I exit bash, I can still not see what ... I type until I open a new cygwin window. ... You're running bash under the default DOS-style window, ...
    (comp.unix.shell)
  • Cygwin CVS hangs with PuTTY
    ... Cygwin cvs 1.11.6 on windows 98SE. ... A commandline CVS command succeeds and ... here the DOS window appears to hang. ... If I use Cygwin ssh in place of plink this hang does not occur. ...
    (comp.security.ssh)
  • Re: Linux newbie question: problems using XDMCP to remotely start KDE session from a Windows PC
    ... > 1) Make sure you have XFree86 with cygwin is installed on your XP, ssh ... You should get a graphic login prompt. ... MS window. ...
    (Fedora)
  • X11-SSH Tunnelling "Update" Problem with NetBackup
    ... the GUI window does not display correctly. ... the window and click, some of the text charaters show up under your clicks. ... This only appears when tunnelling through SSH. ...
    (SunManagers)