Belt v0.4.0 Belt.Provider.SFTP.ClientKeyBehaviour

Implements the :ssh_client_key_api behaviour for Belt.Provider.SFTP

Summary

Functions

Dynamically adding host keys is not supported

Creates a new :public_key.private_key record by calling openssl

Verifies host keys if enabled through verify_host_key in key_cb_private

Processes and returns user_key if provided in key_cb_private

Functions

add_host_key(host_names, key, connect_options)

Dynamically adding host keys is not supported

genrsa(bytes \\ 2048)

Creates a new :public_key.private_key record by calling openssl.

is_host_key(key, host, algorithm, connect_options)

Verifies host keys if enabled through verify_host_key in key_cb_private.

Otherwise accepts all keys

user_key(algorithm, connect_options)

Processes and returns user_key if provided in key_cb_private.

Otherwise generates one-time private key.