[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#794063: ssh with ControlMaster and ControlPath hangs on 2nd session in same terminal



On 07/30/2015 07:16 PM, Christoph Anton Mitterer wrote:
> On Thu, 2015-07-30 at 10:39 +0200, Uwe Kleine-König wrote:
>>    This doesn't terminate the ssh-command to keep the control socket
>>    open. Then pressing Ctrl-Z and run bg to send the ssh into the
>>    background.
> I think that's basically as it should be.
> The manpage's documentation is unfortunately a bit unclear here, I once
> sent some patches upstream that should clear things up much more
> better:
> https://lists.mindrot.org/pipermail/openssh-unix-dev/2015
> -February/033471.html
> 
> But I guess that was never merged for whatever reasons...
I didn't want to wail about this one. I understand that this is (more or
less) necessary.

>>  - Now repeat the ssh command in the first terminal:
>>
>> 	ssh -o "ControlMaster auto" -o "ControlPath ~/.ssh/sshctrl
>> -%l-%h-%p-%r" localhost
>>
>> Both sessions don't react any more. The only way I found to resolve 
>> up
>> to now is to kill all related ssh sessions with kill(1).
> That's kinda interesting though, I can reproduce that.
> Even ~. or so doesn't work anymore, and it really seems to require
> SIGKILL.
> 
> Interestingly it doesn't happen when ControlPersist is e.g. set to 1s.
> 
> Sounds like an upstream issue, could you perhaps forward this?
My plan was, that this is forwarded by the ssh maintainers as they for
sure now better than me where and how to report this :-)

Best regards
Uwe


Reply to: