sshkeys

package module
v0.0.0-...-10ec281 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2017 License: MIT Imports: 3 Imported by: 0

README

sshkeys

Get all ssh public keys of a ssh server

Installation
go get -u github.com/Eun/sshkeys/cmd/sshkeys

OR

Prebuild from Releases

Usage
sshkeys [options] host

Options:
    -format=authorized_keys       Format to print the public keys, valid formats are: fingerprint, fingerprint-sha1, sha1, fingerprint-legacy, fingerprint-md5, md5, authorized_keys, authorizedkeys, authorized
    -output=console               Output format, valid formats are: console, json
    -timeout=60s                  Connection timeout
Example
sshkeys example.com
sshkeys -format=fingerprint-md5 -output=json example.com:22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKeys

func GetKeys(host string, timeout time.Duration) ([]ssh.PublicKey, error)

func GetVersion

func GetVersion(host string, timeout time.Duration) (string, error)

Types

This section is empty.

Directories

Path Synopsis
cmd
sshkeys command

Jump to

Keyboard shortcuts

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