| Summary: | ssh keeps connection open to ssh-agent for lifetime of connection | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Simon Tatham <anakin> | ||||
| Component: | ssh | Assignee: | Damien Miller <djm> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | normal | CC: | ahmedsayeed1982, djm, dtucker | ||||
| Priority: | P5 | ||||||
| Version: | 7.6p1 | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 2915 | ||||||
| Attachments: |
|
||||||
|
Description
Simon Tatham
2018-10-03 16:19:01 AEST
Created attachment 3189 [details]
close agent socket after authentication
It's supposed to close the agent socket, but it wasn't happening because of a bug. Here's a fix.
Comment on attachment 3189 [details]
close agent socket after authentication
The problem here is that pubkey_prepare() was setting authctxt.agent_fd, but it was then being clobbered by the subsequent authctxt preparation in ssh_userauth2().
The fix moves the pubkey_prepare() call down to after the preparation of authctxt is complete and also adds some cleanup of agent_fd after it is closed.
fix is committed and will be in openssh-8.0. Thanks! Closing all resolved bug with release of openssh-8.2 [spam removed] |