auth

package
v0.0.0-...-7a6c026 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Copyright (c) 2020 Bram Vandenbogaerde * You may use, distribute or modify this code under the * terms of the Mozilla Public License 2.0, which is distributed * along with the source code.

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)

Creates a configuration for a client that authenticates using username and password

func PrivateKey

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

PrivateKey Loads a private and public key from "path" and returns a SSH ClientConfig to authenticate with the server

func PrivateKeyWithPassphrase

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

Creates the configuration for a client that authenticates with a password protected private key

func SshAgent

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

Creates a configuration for a client that fetches public-private key from the SSH agent for authentication

Types

This section is empty.

Jump to

Keyboard shortcuts

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