blob: 1096e096317ce70ad1aca249d81e803f0dec2390 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
defmodule Chessh.SSH.ServerKey do
@behaviour :ssh_server_key_api
def is_auth_key(key, username, _daemon_options) do
Chessh.Auth.KeyAuthenticator.authenticate(username, key)
end
def host_key(algorithm, daemon_options) do
:ssh_file.host_key(algorithm, daemon_options)
end
end
|