| Summary: | [PATCH] ssh -W opens two connections when ControlPersist is enabled. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Ricky Zhou <ricky> | ||||
| Component: | ssh | Assignee: | Assigned to nobody <unassigned-bugs> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | normal | CC: | djm, simon-bz | ||||
| Priority: | P2 | ||||||
| Version: | 5.9p1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 1930 | ||||||
| Attachments: |
|
||||||
|
Description
Ricky Zhou
2011-10-17 04:33:47 AEDT
Created attachment 2100 [details]
bz1943.diff
fix dupe stdio forward with ControlPersist
patch applied - this will be in openssh-6.0. Thanks! A workaround for versions before 6.0: instead of
ssh -W %h:%p gateway
Use:
sh -c "ssh gateway true < /dev/null && ssh -W %h:%p gateway"
The first ssh call does not use -W so it is not affected by this bug. It makes sure that the master process is running. The second call does not need to fork a master so it is not affected either.
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1 |