Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSSHArgs ¶ added in v2.57.0
func BuildSSHArgs(opts SSHOptions) []string
BuildSSHArgs returns the arguments for the ssh command
func ConnectWithFallback ¶ added in v2.57.0
func ConnectWithFallback(users []string, connect func(user string) (int, string, error), onRetry func(next string)) (int, error)
ConnectWithFallback runs connect for each user until it succeeds, or fails for another reason than the authentication. It returns the result of the last attempt
func IsAuthFailure ¶ added in v2.57.0
IsAuthFailure returns true if ssh failed to authenticate. ssh uses the exit code 255 for its own errors, and prints "Permission denied (<methods>)" when all authentication methods failed
Types ¶
type CmdSSH ¶
type CmdSSH struct {
*subcommand.SubCommand
// contains filtered or unexported fields
}