auth

package
v0.1.81 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PasswordKey

func PasswordKey(username string, password string, keyCallBack ssh.HostKeyCallback) (ssh.ClientConfig, error)

使用用户名和密码进行身份验证

func PrivateKey

func PrivateKey(username string, path string, keyCallBack ssh.HostKeyCallback) (ssh.ClientConfig, error)

PrivateKey 从"path"加载私钥和公钥,并返回SSH ClientConfig以向服务器进行身份验证

func PrivateKeyWithPassphrase

func PrivateKeyWithPassphrase(username string, passpharase []byte, path string, keyCallBack ssh.HostKeyCallback) (ssh.ClientConfig, error)

为使用受密码保护的私钥进行身份验证

func SshAgent

func SshAgent(username string, keyCallBack ssh.HostKeyCallback) (ssh.ClientConfig, error)

SSH代理获取用于身份验证的公钥和私钥

Types

This section is empty.

Jump to

Keyboard shortcuts

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