public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: ssh ControlMaster re-broken
Date: Wed, 18 Nov 2015 17:32:00 -0000	[thread overview]
Message-ID: <20151118173219.GS6402@calimero.vinschen.de> (raw)
In-Reply-To: <8ADFA0E0FC6B6F4A96E106C224E204F30EE3F631@SGSIMBX006.nsn-intra.net>

[-- Attachment #1: Type: text/plain, Size: 2193 bytes --]

On Nov 17 12:46, Zhu, Binbin (Nokia - CN/Hangzhou) wrote:
> Hi,
> 
> It worked month ago, but it failed after reinstall.
> 
> 1. Create shared session: ssh -vvv -nNf -o ControlMaster=yes -o ControlPath="$HOME/.ssh/ctl/%L-%r@%h:%p"  remote-host
> Output in accepting new connection: 
> $ debug1: multiplexing control connection
> debug3: fd 5 is O_NONBLOCK
> debug3: fd 5 is O_NONBLOCK
> debug1: channel 1: new [mux-control]
> debug3: channel_post_mux_listener: new mux channel 1 fd 5
> debug3: mux_master_read_cb: channel 1: hello sent
> debug3: mux_master_read_cb: channel 1 packet type 0x00000001 len 4
> debug2: process_mux_master_hello: channel 1 slave version 4
> debug3: mux_master_read_cb: channel 1 packet type 0x10000004 len 4
> debug2: process_mux_alive_check: channel 1: alive check
> debug3: mux_master_read_cb: channel 1 packet type 0x10000002 len 41
> debug2: process_mux_new_session: channel 1: request tty 1, X 0, agent 0, subsys 0, term "xterm", cmd "", env 0
> mm_receive_fd: no message header
> process_mux_new_session: failed to receive fd 0 from slave
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  failed attempt at descriptor passing

> 2. Client output:
> $ ssh -vvv -o ControlPath="$HOME/.ssh/ctl/%L-%r@%h:%p" remote-host
> OpenSSH_7.1p1, OpenSSL 1.0.2d 9 Jul 2015
> debug2: fd 3 setting O_NONBLOCK
> debug2: mux_client_hello_exchange: master version 4
> debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
> debug3: mux_client_request_session: entering
> debug3: mux_client_request_alive: entering
> debug3: mux_client_request_alive: done pid = 10144
> debug3: mux_client_request_session: session request sent
> mux_client_request_session: read from master failed: Connection reset by peer
> debug2: ssh_connect: needpriv 0
> 
> Could you help?

Are you really sure it ever worked?  To the best of my knowledge the
control master stuff always required descriptor passing via AF_LOCAL
sockets, which is not available under Cygwin.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-11-18 17:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-17 12:46 Zhu, Binbin (Nokia - CN/Hangzhou)
2015-11-18 17:32 ` Corinna Vinschen [this message]
2015-11-19 16:45   ` Andrew Schulman
2015-11-20  9:38     ` Corinna Vinschen
2015-11-20 13:42       ` Andrew Schulman
2015-11-18 12:28 Zhu, Binbin (Nokia - CN/Hangzhou)
2015-11-18 15:53 ` Larry Hall (Cygwin)
2015-11-23  8:51 Zhu, Binbin (Nokia - CN/Hangzhou)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151118173219.GS6402@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).