whoarethey

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 6 Imported by: 0

README

whoarethey

A program to determine what SSH keys a server accepts. See https://www.agwa.name/blog/post/whoarethey for background. Inspired by whoami.filippo.io.

Install

If you have the latest version of Go installed, you can run:

go install src.agwa.name/whoarethey@latest

Usage

Specify the host/port of the SSH server, the username to try logging in as, and one or more keys, which can specified as the name of an authorized_keys-formatted file, or a GitHub username prefixed with github::

whoarethey HOST:PORT USERNAME KEYSFILE|github:USERNAME...

The program outputs a list of the keys which were accepted by the server.

Example

To determine if @AGWA or @FiloSottile can log in as root on 192.0.2.4:

$ whoarethey 192.0.2.4:22 root github:AGWA github:FiloSottile
github:AGWA

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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