Skip to content

ssh_keyscan

ssh-keyscan documentation

toolroom._stubs.ssh_keyscan.SshKeyscan

Bases: Tool[_R]

__call__

__call__(
    *args: str | PathLike[str],
    D: Flag = ...,
    H: Flag = ...,
    O: Value = ...,
    T: Value = ...,
    c: Flag = ...,
    f: Value = ...,
    p: Value = ...,
    q: Flag = ...,
    t: Value = ...,
    v: Flag = ...,
    **flags: Any,
) -> _R

gather SSH public keys from servers

Parameters:

Name Type Description Default
D Flag

Print keys found as SSHFP DNS records. Added in 7.7p1.

...
H Flag

Hash all hostnames and addresses in the output. Added in 4.0p1.

...
O Value

Specify a key/value option. Added in 9.3p1.

...
T Value

Set the timeout for connection attempts. Added in 3.0p1.

...
c Flag

Request certificates from target hosts instead of plain keys. Added in 7.2p1.

...
f Value

Read hosts or "addrlist namelist" pairs from file, one per line.

...
p Value

Connect to port on the remote host. Added in 3.0p1.

...
q Flag

Quiet mode: do not print server host name and banners in comments. Added in 9.8p1.

...
t Value

Specify the type of the key to fetch from the scanned hosts. May be repeated: a list emits the flag once per item.

...
v Flag

Verbose mode: print debugging messages about progress. Added in 3.0p1.

...