ssh_client_key_api
- Provided by: erlang-manpages (Version: 1:16.b.3-dfsg-1ubuntu2.2)
- Source: erlang
- Report a bug
Behavior describing the API for an SSH client's public key handling. By implementing the callbacks defined. in this behavior it is possible to customize the SSH client's public key handling. By default the SSH application implements this behavior with help of the standard openssh files, see ssh(7).
Type definitions that are used more than once in this module and/or abstractions to indicate the intended use of the data type. For more details on public key data types see the public_key user's guide.
boolean() = true | false
string() = [byte()]
public_key() = #'RSAPublicKey'{}| {integer(), #'Dss-Parms'{}}| term()
private_key() = #'RSAPrivateKey'{} | #'DSAPrivateKey'{} | term()
public_key_algorithm() = 'ssh-rsa'| 'ssh-dss' | atom()
Module:add_host_key(HostNames, Key, ConnectOptions) -> ok |
{error, Reason}
Types:
Adds a host key to the set of trusted host keys
Module:is_host_key(Key, Host, Algorithm, ConnectOptions) ->
Result
Types:
Checks if a host key is trusted
Module:user_key(Algorithm, ConnectOptions) -> {ok,
PrivateKey} | {error, Reason}
Types:
Fetches the users "public key" matching the Algorithm.