Skip to content

Commit

Permalink
start ssh forward only once (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
gescheit committed Apr 10, 2024
1 parent 9df4b87 commit 10697ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/streamer/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,9 @@ func (m *Streamer) WithCloseSessionCallback(fn func(*ssh.Session) error) {
}

func (m *Streamer) startForwarding(sess *ssh.Session) error {
if m.forwardAgent != nil {
return nil
}
keyring := agent.NewKeyring()

privKeysRaw := m.credentials.GetPrivateKeys()
Expand Down

0 comments on commit 10697ff

Please sign in to comment.