table of contents
other versions
- jessie 1:17.3-dfsg-4+deb8u2
- jessie-backports 1:19.2.1+dfsg-2+deb9u1~bpo8+1
- stretch 1:19.2.1+dfsg-2+deb9u2
- testing 1:21.2.5+dfsg-1
- unstable 1:21.2.6+dfsg-1
- experimental 1:22.0~rc1+dfsg-1
ssh_server_key_api(3erl) | Erlang Module Definition | ssh_server_key_api(3erl) |
NAME¶
ssh_server_key_api --behaviour(ssh_server_key_api).
DESCRIPTION¶
Behaviour describing the API for an SSH server's public key handling. By implementing the callbacks defined in this behavior it is possible to customize the SSH server's public key handling. By default the SSH application implements this behavior with help of the standard openssh files, see ssh(7).DATA TYPES ¶
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()EXPORTS¶
Module:host_key(Algorithm, DaemonOptions) -> {ok, Key} | {error, Reason}
Types:
Algorithm = public_key_algorithm()
Host key algorithm. Should support 'ssh-rsa' | 'ssh-dss' but additional algorithms can be handled.
DaemonOptions = proplists:proplist()
Key = private_key()
The private key of the host matching the Algorithm
Reason = term()
Host key algorithm. Should support 'ssh-rsa' | 'ssh-dss' but additional algorithms can be handled.
DaemonOptions = proplists:proplist()
Options provided to ssh:daemon/[2,3]
Key = private_key()
The private key of the host matching the Algorithm
Fetches the hosts private key
Module:is_auth_key(Key, User, DaemonOptions) -> Result
Types:
Key = public_key()
Normally an RSA or DSA public key but handling of other public keys can be added
User = string()
The user owning the public key
DaemonOptions = proplists:proplist()
Options provided to ssh:daemon/[2,3]
Result = boolean()
Key = public_key()
Normally an RSA or DSA public key but handling of other public keys can be added
User = string()
The user owning the public key
DaemonOptions = proplists:proplist()
Options provided to ssh:daemon/[2,3]
Result = boolean()
Checks if the user key is authorized
ssh 3.0.5 | Ericsson AB |