diff --git a/cmd/ssh.go b/cmd/ssh.go index 13eed0780..cdfe3cf94 100644 --- a/cmd/ssh.go +++ b/cmd/ssh.go @@ -362,7 +362,7 @@ func (cmd *SSHCmd) startTunnel( } // check if we should reverse forward ports - if len(cmd.ReverseForwardPorts) > 0 { + if len(cmd.ReverseForwardPorts) > 0 && !cmd.GPGAgentForwarding { go func() { err := cmd.reverseForwardPorts(ctx, containerClient, log) if err != nil {