ssh

package
v0.0.105 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommandsWithCredentials added in v0.0.104

func ExecuteCommandsWithCredentials(ctx context.Context, host string, port int, username, password string, commands []string, timeout int) ([]*commonprotocolfern.SshCommandExecution, error)

ExecuteCommandsWithCredentials executes commands on the remote SSH server using provided credentials

func PerformAuthentication

func PerformAuthentication(target string, config *sshfern.PentestSshConfig) (*sshfern.AuthResult, error)

PerformAuthentication performs authentication attempts against SSH service Returns auth results

func PerformAuthenticationWithContext

func PerformAuthenticationWithContext(ctx context.Context, target string, config *sshfern.PentestSshConfig) (*sshfern.AuthResult, error)

PerformAuthenticationWithContext performs authentication attempts against SSH service with context Returns auth results

func PerformCommandExecution added in v0.0.104

func PerformCommandExecution(ctx context.Context, target string, config *sshfern.PentestSshConfig) (*sshfern.ExecResult, error)

PerformCommandExecution executes commands on remote SSH target using authenticated credentials

Types

type ExecutionCredentials added in v0.0.104

type ExecutionCredentials struct {
	Username string
	Password string
}

ExecutionCredentials holds authenticated credentials for command execution

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL