[ANNOUNCEMENT] autossh 1.4g-1

2019-04-02 Thread Andrew Schulman
autossh 1.4g-1 is now available in Cygwin. According to the upstream changelog at http://www.harding.motd.ca/autossh/: "Version 1.4g most notably addresses a bug that could see an alarm signal occur without a handler, causing autossh to exit inappropriately." autossh is a program t

AutoSSH problem

2018-06-04 Thread Greg Freemyer
On Thu, May 31, 2018, 4:58 AM Germain Le Chapelain wrote: > > Hi, > > > I am experiencing troubles trying to set up a reverse SSH tunnel: > > I have installed AutoSSH as such: > > cygrunsrv.exe -I AutoSSH -p /bin/autossh -a "-M 2 -R > *:5900:localhost:59

Re: AutoSSH problem

2018-06-02 Thread Germain Le Chapelain
On 06/01/18 23:03, René Berber wrote: The behavior looks normal. Quoting from the autossh man page: "Startup behaviour If the ssh session fails with an exit status of 1 on the very first try, autossh 1.' will assume that there is some problem with syntax or the connection setup

Re: AutoSSH problem

2018-06-01 Thread René Berber
On 6/1/2018 10:31 AM, Germain Le Chapelain : The behavior looks normal. Quoting from the autossh man page: "Startup behaviour If the ssh session fails with an exit status of 1 on the very first try, autossh 1.' will assume that there is some problem with syntax or the connection

Re: AutoSSH problem

2018-06-01 Thread Germain Le Chapelain
Hi Andrew! Thank you so much for the prompt answer, Hi. I'm glad someone is using autossh. I don't use it myself any more, and as a package maintainer it's impossible for me to tell if anyone else is. Yes, it came up first in our research to establish a reliable reverse SSH-tun

Re: AutoSSH problem

2018-05-31 Thread Andrew Schulman
Hi. I'm glad someone is using autossh. I don't use it myself any more, and as a package maintainer it's impossible for me to tell if anyone else is. > I have installed AutoSSH as such: > > cygrunsrv.exe -I AutoSSH -p /bin/autossh -a "-M 2 -R > *:5900:localhos

AutoSSH problem

2018-05-31 Thread Germain Le Chapelain
Hi, I am experiencing troubles trying to set up a reverse SSH tunnel: I have installed AutoSSH as such: cygrunsrv.exe -I AutoSSH -p /bin/autossh -a "-M 2 -R *:5900:localhost:5900 s...@lanvaux.fr" -y tcpip --type auto -e AUTOSSH_NTSERVICE=yes Now, it works great, except

[ANNOUNCEMENT] autossh 1.4f-1

2018-04-09 Thread Andrew Schulman
autossh 1.4f-1 is now available in Cygwin. According to the upstream changelog at http://www.harding.motd.ca/autossh/: "Version 1.4f incorporates a number of changes and fixes to signal handling and exit conditions. The most notable changes are that it will exit properly when killed

[ANNOUNCEMENT] Updated: autossh 1.4e-1

2015-03-23 Thread Andrew Schulman
A new release of autossh is available in the Cygwin distribution. This is a new upstream release, with a small adjustment to how poll times are chosen. See http://www.harding.motd.ca/autossh/CHANGES for a full list of changes. autossh is a program to start an instance of ssh and monitor it

[ANNOUNCEMENT] Updated: autossh 1.4d-1

2014-09-12 Thread Andrew Schulman
A new version of autossh, 1.4d-1, is available in the Cygwin distribution. This is a new upstream release, with bug fixes: * Fixes file descriptor issues when started without standard input available (for example, in system initialization scripts) autossh is a program to start an instance of ssh

Re: Troubleshooting AutoSSH

2013-07-12 Thread L. V. Lammert
thing in this Windows machine. > It uses ssh to forward some ports of its own, and > that feature might be ipv4-only. You can turn it off by passing -M0 to > autossh. Does that fix the problem? > I could try, but there is no way I can test a remote connection with V6, local connectio

Re: Troubleshooting AutoSSH

2013-07-12 Thread Andrew Schulman
> On Fri, 12 Jul 2013, Andrew Schulman wrote: > > > Hi Lee. Okay, that does seem to narrow it down. > > > > You're right that autossh doesn't have any ipv4 options. It hasn't been > > updated in a few years, and I think it's just not ipv6-aware

Re: Troubleshooting AutoSSH

2013-07-12 Thread L. V. Lammert
On Fri, 12 Jul 2013, Andrew Schulman wrote: > Hi Lee. Okay, that does seem to narrow it down. > > You're right that autossh doesn't have any ipv4 options. It hasn't been > updated in a few years, and I think it's just not ipv6-aware yet. > Looks like it may no

Re: Troubleshooting AutoSSH

2013-07-12 Thread Andrew Schulman
> debug1: Local connections to LOCALHOST:5661 forwarded to remote address > 127.0.0.1:6661 > debug1: Local forwarding listening on ::1 port 5661. > ^ > > > > It looks like the problem is that AutoSSH is binding to IPV6, *NOT

Re: Troubleshooting AutoSSH

2013-07-12 Thread L. V. Lammert
On Fri, 12 Jul 2013, Andrew Schulman wrote: > > Trying to debug a session, .. neither AUTOSSH_DEBUG nor AUTOSSH_LOGLEVEL: > > > > $ env | grep AUTO > > AUTOSSH_DEBUG=1 > > AUTOSSH_LOGLEVEL=7 > > > > nor -vv: > > > > cygrunsrv -I

Re: Troubleshooting AutoSSH

2013-07-11 Thread Andrew Schulman
> Trying to debug a session, .. neither AUTOSSH_DEBUG nor AUTOSSH_LOGLEVEL: > > $ env | grep AUTO > AUTOSSH_DEBUG=1 > AUTOSSH_LOGLEVEL=7 > > nor -vv: > > cygrunsrv -I AutoSSH -f "remote_link" -p /usr/bin/autossh -a " -vv \ > > change the l

Troubleshooting AutoSSH

2013-07-11 Thread L. V. Lammert
Trying to debug a session, .. neither AUTOSSH_DEBUG nor AUTOSSH_LOGLEVEL: $ env | grep AUTO AUTOSSH_DEBUG=1 AUTOSSH_LOGLEVEL=7 nor -vv: cygrunsrv -I AutoSSH -f "remote_link" -p /usr/bin/autossh -a " -vv \ change the logging info always ("Host key verification filed")

SSH exited with error status 255 AutoSSH

2012-11-12 Thread Tony DiSalvo
realivlty quickly. I have set the AUTOSSH_DEBUG to yes but I am not making heads or tails of the error My main issue is that I keep getting ssh exited with error status 255; restarting ssh I have been using http://linux.die.net/man/1/autossh for most of my info and I have been searching the

Re: How can autossh start remote connection, if computer is off?

2010-11-11 Thread Cyrille Lefevre
Le 10/11/2010 02:38, David Rothenberger a écrit : > > On 11/9/2010 5:26 PM, cygwin.20.gyur...@spamgourmet.com wrote: >> How Can I do autossh connection with any computer which is off, but >> sometime coming to power on? >> I used this: >> cygrunsrv -I AutoSSH -n

Re: How can autossh start remote connection, if computer is off?

2010-11-09 Thread cygwin . 20 . gyurman
Thank you, you could solve it my problem. ;-) 2010/11/10 David Rothenberger - daver...@acm.org > On 11/9/2010 5:26 PM, cygwin.20.gyurman wrote: >> How Can I do autossh connection with any computer which is off, but >> sometime coming to power on? >> I used this: >> cy

Re: How can autossh start remote connection, if computer is off?

2010-11-09 Thread David Rothenberger
On 11/9/2010 5:26 PM, cygwin.20.gyur...@spamgourmet.com wrote: > How Can I do autossh connection with any computer which is off, but > sometime coming to power on? > I used this: > cygrunsrv -I AutoSSH -n -O -u name -w pass -p /usr/bin/autossh -a "-M > $port -R 5903:localhost:2

How can autossh start remote connection, if computer is off?

2010-11-09 Thread cygwin . 20 . gyurman
How Can I do autossh connection with any computer which is off, but sometime coming to power on? I used this: cygrunsrv -I AutoSSH -n -O -u name -w pass -p /usr/bin/autossh -a "-M $port -R 5903:localhost:22 n...@192.168.1.102" -e "AUTOSSH_NTSERVICE=yes AUTOSSH_GATETIME=0" But

Re: 1.5.25 under XP Pro SP3: autossh service drops connection immediately after pubkey authentication

2009-11-27 Thread Andrew Schulman
d to create /etc/ssh/ssh_known_hosts and make it writeable by SYSTEM. Or /etc/ssh_known_hosts? Since it appears that you have all of your ssh configs in /etc instead of /etc/ssh. That is unusual, although I don't think it should cause any problems for autossh. > The autossh command line

1.5.25 under XP Pro SP3: autossh service drops connection immediately after pubkey authentication

2009-11-22 Thread Ashton Crawford
I am trying to create an autossh service that establishes a reverse ssh connection to an openssh server runing on the local lan.  The server will eventually migrate off the lan and I have no control over the firewall which is why I'm testing this setup first.  I've run into several probl

Re: cygrunsrv/autossh howto start even the destination address is not reachable yet?

2009-10-05 Thread Matthias Meyer
Am Sonntag 04 Oktober 2009 schrieb Julio Costa: > Hi, > > On Sun, Oct 4, 2009 at 17:57, Matthias Meyer wrote: > > Hi, > > > > I've running port forwarding in WindowsXP as well as Windows Vista by using > > autossh, running as a service, installed by cygrunsr

Re: cygrunsrv/autossh howto start even the destination address is not reachable yet?

2009-10-04 Thread Julio Costa
Hi, On Sun, Oct 4, 2009 at 17:57, Matthias Meyer wrote: > Hi, > > I've running port forwarding in WindowsXP as well as Windows Vista by using > autossh, running as a service, installed by cygrunsrv. > > cygrunsrv -I service-tunnel -f "secure tunnel for service"

cygrunsrv/autossh howto start even the destination address is not reachable yet?

2009-10-04 Thread Matthias Meyer
Hi, I've running port forwarding in WindowsXP as well as Windows Vista by using autossh, running as a service, installed by cygrunsrv. cygrunsrv -I service-tunnel -f "secure tunnel for service" \ -n -t auto -y tcpip -O -u $priv_user -w $priv_pwd -p /bin/nice \

Re: cygrunsrv autossh - tunnel does not come up

2009-01-27 Thread hooner
> >> > I have problems running autossh via cygrunsrv on WIN2003: >> > >> > /bin/cygrunsrv.exe -I AutoSSH -p /bin/autossh -a "-M 2 -g2CN -R >> > 20120:localhost:3389 -i /etc/key-rsa -p 20012 u...@192.168.100.12" -e >> > AUTOSSH_NTSER

Re: cygrunsrv autossh - tunnel does not come up

2009-01-09 Thread Andrew Schulman
> > Hm, I'm surprised to hear that. I haven't run autossh as a service in a > > while, > > but when I did it worked very reliably for me. Can you tell me anything > > more > > about how or why it fails to start? > > No, sorry, there's n

Re: cygrunsrv autossh - tunnel does not come up

2009-01-09 Thread René Berber
Andrew Schulman wrote: > Hm, I'm surprised to hear that. I haven't run autossh as a service in a > while, > but when I did it worked very reliably for me. Can you tell me anything more > about how or why it fails to start? No, sorry, there's no useful information

Re: cygrunsrv autossh - tunnel does not come up

2009-01-09 Thread Andrew Schulman
> > I have problems running autossh via cygrunsrv on WIN2003: > > > > /bin/cygrunsrv.exe -I AutoSSH -p /bin/autossh -a "-M 2 -g2CN -R > > 20120:localhost:3389 -i /etc/key-rsa -p 20012 u...@192.168.100.12" -e > > AUTOSSH_NTSERVICE=yes -y tcpip --t

Re: cygrunsrv autossh - tunnel does not come up

2009-01-08 Thread René Berber
hooner wrote: > I have problems running autossh via cygrunsrv on WIN2003: > > /bin/cygrunsrv.exe -I AutoSSH -p /bin/autossh -a "-M 2 -g2CN -R > 20120:localhost:3389 -i /etc/key-rsa -p 20012 u...@192.168.100.12" -e > AUTOSSH_NTSERVICE=yes -y tcpip --type auto &g

cygrunsrv autossh - tunnel does not come up

2009-01-08 Thread hooner
I have problems running autossh via cygrunsrv on WIN2003: /bin/cygrunsrv.exe -I AutoSSH -p /bin/autossh -a "-M 2 -g2CN -R 20120:localhost:3389 -i /etc/key-rsa -p 20012 u...@192.168.100.12" -e AUTOSSH_NTSERVICE=yes -y tcpip --type auto As soon as I start the service (net start a

[ANNOUNCEMENT] Updated: autossh-1.4b-1

2008-07-17 Thread Schulman . Andrew
A new version of the autossh package is available in the Cygwin distribution. autossh is a program to start an instance of ssh and monitor it, restarting it as necessary should it die or stop passing traffic. autossh monitors connections by sending data to an echo server or through a loop of

[ANNOUNCEMENT] Updated: autossh-1.4a-1

2006-07-13 Thread Schulman . Andrew
A new version of the autossh package is available in the Cygwin distribution. autossh is a program to start an instance of ssh and monitor it, restarting it if it should die or stop passing traffic. Changes in version 1.4a-1: * New upstream release: bug fixes. Andrew E. Schulman

[ANNOUNCEMENT] Updated: autossh-1.4-1

2006-06-28 Thread Schulman . Andrew
A new version of the autossh package is available in the Cygwin distribution. autossh is a program to start an instance of ssh and monitor it, restarting it if it should die or stop passing traffic. Changes in version 1.4-1: * New upstream release: bug fixes. Andrew E. Schulman

Re: autossh broken with current openssh/cygwin

2006-06-27 Thread Andrew Schulman
> > $ AUTOSSH_FIRST_POLL=5 AUTOSSH_POLL=5 AUTOSSH_DEBUG=yes autossh -M 3 > > -N dessent.net > > autossh: PID 3204: short poll time: adjusting net timeouts to 2500 > > autossh: PID 3204: checking for grace period, tries = 0 > > autossh: PID 3204: starting ssh (

Re: autossh broken with current openssh/cygwin

2006-06-27 Thread Brian Dessent
t before 1.5.20, I reverted all event > handling for accept and connect and returned to using select again, as > it was implemented until 1.5.18. Thanks for the quick fix, and I can confirm that autossh is functioning fine again now. It's always unfortunate when something has to be re

Re: autossh broken with current openssh/cygwin

2006-06-26 Thread Corinna Vinschen
On Jun 23 20:19, Brian Dessent wrote: > > I'm not sure if it is due to changes in openssh, or changes in Cygwin, > but the current autossh package fails to work. Instead of detecting > that the connection is alive, it seems to continuously timeout and > recycle the ssh

autossh broken with current openssh/cygwin

2006-06-23 Thread Brian Dessent
I'm not sure if it is due to changes in openssh, or changes in Cygwin, but the current autossh package fails to work. Instead of detecting that the connection is alive, it seems to continuously timeout and recycle the ssh process. Here is a representative testcase: $ AUTOSSH_FIRST_P

[ANNOUNCEMENT] Updated: autossh-1.3-2

2005-05-10 Thread Schulman . Andrew
A new version of the autossh package is available in the Cygwin distribution. autossh is a program to start an instance of ssh and monitor it, restarting it if it should die or stop passing traffic. Changes in version 1.3-2: * Clarify the documentation for running autossh as an NT system

[ANNOUNCEMENT] Updated: autossh-1.3-1

2005-03-25 Thread Schulman . Andrew
A new version of the autossh package is available in the Cygwin distribution. Changes in version 1.3-1: * New upstream release: - You can now use a remote echo server, instead of a loop of port forwardings, to monitor the ssh connection. See the man page for details. - Several bug fixes

RE: autossh crash with 20050314 and earlier cygwin1.dll

2005-03-17 Thread Dave Korn
Original Message >From: Christopher Faylor >Sent: 16 March 2005 19:21 > On Wed, Mar 16, 2005 at 06:06:20PM -, Dave Korn wrote: >> [EMAIL PROTECTED] /gnu/glibc-2.3.4/resolv> cat -n gethnamaddr.c >> [snip!] 103 >> 104 static struct hostent host; >> 105 static cha

Re: [ANNOUNCEMENT] Updated: autossh-1.2g-5

2005-03-16 Thread Christopher Faylor
On Wed, Mar 16, 2005 at 08:45:09PM +0100, [EMAIL PROTECTED] wrote: >A new version of the autossh package is available in the Cygwin >distribution. > >Changes in version 1.2g-5: >* Fix heap corruption and segfaults caused by free()ing static memory. Just to state it really clea

[ANNOUNCEMENT] Updated: autossh-1.2g-5

2005-03-16 Thread Schulman . Andrew
A new version of the autossh package is available in the Cygwin distribution. Changes in version 1.2g-5: * Fix heap corruption and segfaults caused by free()ing static memory. Andrew E. Schulman *** To update your installation

Re: autossh crash with 20050314 and earlier cygwin1.dll

2005-03-16 Thread Christopher Faylor
On Wed, Mar 16, 2005 at 06:06:20PM -, Dave Korn wrote: >Original Message >>From: Andrew Schulman >>Sent: 16 March 2005 17:08 > > >> Would the job be easier in my case, where I have a repeatable crash? I >> provided strace output in the earlier thread

RE: autossh crash with 20050314 and earlier cygwin1.dll [autossh maintainer please note]

2005-03-16 Thread Andrew Schulman
> Generally speaking, it is whoever mallocs memory that has the > responsibility for freeing it. If your app mallocs it, your app should free > it; if the library mallocs it, the library should free it. > > In some cases, the ownership of a bit of memory (or any other resource) > may be trans

RE: autossh crash with 20050314 and earlier cygwin1.dll

2005-03-16 Thread Andrew Schulman
> GOK why it works on glibc-based systems, but I guess it must, or the > problem would surely have cropped up before. Hm.. Simple: that part of the code is contained in an #ifdef HAVE_NO_ADDRINFO ... #endif block, and so is only built on systems without a getaddrinfo () function. That

RE: autossh crash with 20050314 and earlier cygwin1.dll [autossh maintainer please note]

2005-03-16 Thread Dave Korn
Original Message >From: Andrew Schulman >Sent: 16 March 2005 17:44 > OK. (hangs head) I have to take the blame for this, because as it > happens I contributed that bit of code. Forgive my simplicity on this > point, but it seemed like good memory heigene-- free up the memory that > getho

Re: autossh crash with 20050314 and earlier cygwin1.dll [autossh maintainer please note]

2005-03-16 Thread Andrew Schulman
> The problem is that autossh is freeing the return value of > gethostbyname(). I can't find any reference which says that is a > acceptable thing to do. It certainly screws up cygwin, and I can't > think of any way to avoid having it screw up cygwin. Maybe it won'

RE: autossh crash with 20050314 and earlier cygwin1.dll

2005-03-16 Thread Dave Korn
Original Message >From: Andrew Schulman >Sent: 16 March 2005 17:08 > Would the job be easier in my case, where I have a repeatable crash? I > provided strace output in the earlier thread about my autossh problems, > but haven't tried using any debug builds of c

Re: autossh crash with 20050314 and earlier cygwin1.dll [autossh maintainer please note]

2005-03-16 Thread Igor Pechtchanski
ked "funny" and I couldn't figure out how cygwin could get > in the state indicated by the stack trace. Well, heap corruption is what > caused the funniness. > > The problem is that autossh is freeing the return value of > gethostbyname(). I can't find any referenc

RE: autossh crash with 20050314 and earlier cygwin1.dll

2005-03-16 Thread Andrew Schulman
hread either. Would the job be easier in my case, where I have a repeatable crash? I provided strace output in the earlier thread about my autossh problems, but haven't tried using any debug builds of cygwin1.dll. I'm not conversant with debuggers, but I have used gdb before and could

Re: autossh crash with 20050314 and earlier cygwin1.dll [autossh maintainer please note]

2005-03-16 Thread Christopher Faylor
On Tue, Mar 15, 2005 at 08:20:28PM -0800, David Rothenberger wrote: >I've been having some problems with autossh crashing with 1.5.13 and >later snapshots. These problems did not occur with 1.5.12. (The problem >may be related to the one reported by Andrew Schulman in ><http

RE: autossh crash with 20050314 and earlier cygwin1.dll

2005-03-16 Thread Dave Korn
Original Message >From: David Rothenberger >Sent: 16 March 2005 04:20 > Andrew. It has crashed twice in the few weeks and I've captured stack > traces for each. I was running a debugging copy of the Cygwin DLL (built > myself from CVS) in each case and I've run addr2line on each stack > tr

autossh crash with 20050314 and earlier cygwin1.dll

2005-03-15 Thread David Rothenberger
I've been having some problems with autossh crashing with 1.5.13 and later snapshots. These problems did not occur with 1.5.12. (The problem may be related to the one reported by Andrew Schulman in <http://sourceware.org/ml/cygwin/2005-03/msg00410.html>.) autossh doesn't relia

[ANNOUNCEMENT] Updated: autossh-1.2g-4

2004-11-03 Thread Schulman . Andrew
A new version of the autossh package is available in the Cygwin distribution. Changes in version 1.2g-4: * Changed to generic build script method for package building. * Combined all Cygwin-specific docs (README.Cygwin, NEWS.Cygwin, autossh.README) into autossh.README. To update your

[ANNOUNCEMENT] Updated: autossh-1.2g-2

2004-08-18 Thread Schulman . Andrew
A new version of the autossh package is available in the Cygwin distribution. Changes in version 1.2g-2: * Expanded /usr/share/doc/autossh/README.Cygwin, to describe the NT service mode and how to use it with cygrunsrv. To update your installation, click on the "Install Cygwin now&quo

[ANNOUNCEMENT] New package: autossh 1.2g-1

2004-08-14 Thread Schulman . Andrew
The package 'autossh' is now available in the Cygwin distribution. autossh is a program to start an instance of ssh and monitor it, restarting it as necessary should it die or stop passing traffic. autossh monitors connections by sending data through a loop of port forwardings, an

autossh

2004-04-22 Thread Andrew Schulman
Has anyone had any success in building autossh for cygwin? I have version 1.2f. When I try to compile it with any of the provided Makefiles, I get a boatload of errors: $ make -f Makefile.linux gcc -Wall -D"SSH_PATH=\"/usr/bin/ssh\"" -D"VER=\"1.2f\""