sshagent

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2015 License: Apache-2.0 Imports: 5 Imported by: 469

README

ssh-agent

Create a new agent.Agent on any type of OS (so including Windows) from any Go application.

Limitations

When compiled for Windows, it will only support Pageant as the SSH authentication agent.

Credits

Big thanks to Давид Мзареулян (David Mzareulyan) for creating the go-pageant package!

Issues

If you have an issue: report it on the issue tracker

Author

Sander van Harmelen (sander@xanzy.io)

License

The files pageant_windows.go and sshagent_windows.go have their own license (see file headers). The rest of this package is licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Documentation

Index

Constants

View Source
const MaxMessageLen = 8192

Maximum size of message can be sent to pageant

Variables

View Source
var (
	ErrPageantNotFound = errors.New("pageant process not found")
	ErrSendMessage     = errors.New("error sending message")

	ErrMessageTooLong       = errors.New("message too long")
	ErrInvalidMessageFormat = errors.New("invalid message format")
	ErrResponseTooLong      = errors.New("response too long")
)

Functions

func Available

func Available() bool

Available returns true if Pageant is running

func New

func New() (agent.Agent, net.Conn, error)

New returns a new agent.Agent and the (custom) connection it uses to communicate with a running pagent.exe instance (see README.md)

Types

This section is empty.

Jump to

Keyboard shortcuts

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