Skip to content

ensure forwarded SSH agent is always closed#24947

Merged
capnspacehook merged 1 commit intomasterfrom
capnspacehook/fix-agentless-agent-hang
Apr 21, 2023
Merged

ensure forwarded SSH agent is always closed#24947
capnspacehook merged 1 commit intomasterfrom
capnspacehook/fix-agentless-agent-hang

Conversation

@capnspacehook
Copy link
Copy Markdown
Contributor

Previously when handling an SSH agent forward request from a SSH connection to a registered SSH node, the forwarding SSH server would open a SSH channel for the SSH agent but never close it. tsh wasn't affected by this and would exit cleanly when the SSH session was closed. OpenSSH ssh would hang waiting for the open SSH agent channel to close, which would never happen.

Fixes #24936.

Comment thread lib/srv/forward/sshserver.go Outdated
Previously when handling an SSH agent forward request from a SSH
connection to a registered SSH node, the forwarding SSH server would
open a SSH channel for the SSH agent but never close it. tsh wasn't
affected by this and would exit cleanly when the SSH session was closed.
OpenSSH ssh would hang waiting for the open SSH agent channel to close,
which would never happen.
@capnspacehook capnspacehook force-pushed the capnspacehook/fix-agentless-agent-hang branch from 75ac350 to 825b531 Compare April 21, 2023 18:01
@capnspacehook capnspacehook added this pull request to the merge queue Apr 21, 2023
Merged via the queue into master with commit 00bb196 Apr 21, 2023
@capnspacehook capnspacehook deleted the capnspacehook/fix-agentless-agent-hang branch April 21, 2023 23:13
@public-teleport-github-review-bot
Copy link
Copy Markdown

@capnspacehook See the table below for backport results.

Branch Result
branch/v13 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agentless OpenSSH For customers using Teleport and OpenSSH server-access size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSH connection hangs when using OpenSSH to connect to agentless node with an SSH agent forwarded

3 participants