I see that this is a very old issue, but I bring it up again, since I
just ran into the same problem.

I just contacted the autossh developer Carson Harding, who kindly
explained the problem to me.

By default, autossh uses two monitoring ports which must be specified
with the -M option. Debian silently sets this to 21021 (and 21022?) if
you don't set the -M option. Thus, if you are using many connections
to the same destination, you must explicitly set other ports using the
-M option. You can also disable this feature using '-M 0'. Read the
excellent autossh man page for a detailed description.

It would be nice if Debian  would issue a more descriptive warning,
something like:

"Warning: remote port forwarding failed for listen port 21021. Try
specifying another port with the -M option if you are connecting
multiple instances of autossh to the same host."

Instead of the:

"Warning: remote port forwarding failed for listen port 21021"



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to