conf

package
v0.0.0-...-a31944b Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerAddr     = "127.0.0.1:2200"          // ssh jumper host
	PrivateKeyPath = "/Users/grt1st/.ssh/gogo" // ssh jumper private key
)

Variables

This section is empty.

Functions

func ConnectSSHPassword

func ConnectSSHPassword(c ssh.ConnMetadata, pass []byte) (*ssh.Permissions, error)

ConnectSSHPassword authorization to ssh jumper

func ConnectSSHPublicKey

func ConnectSSHPublicKey(c ssh.ConnMetadata, pubKey ssh.PublicKey) (*ssh.Permissions, error)

ConnectSSHPublicKey authorization to ssh jumper

func GetRemoteSSH

func GetRemoteSSH(host string, defaultChoice bool) (string, *ssh.ClientConfig, error)

GetRemoteSSH authorization to ssh jumper slave

func InitSSHPublicKey

func InitSSHPublicKey()

Types

This section is empty.

Jump to

Keyboard shortcuts

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