This module is the default callback handler for the client's and the server's user and host "database" operations. All data, for instance key pairs, are stored in files in the normal file system. This page documents the files, where they are stored and configuration options for this callback module.
The intention is to be compatible with the
Ssh_file implements the
Such another callback module could be used by setting the option
The functions are Callbacks for the SSH app. They are not intended to be called from the user's code!
Daemons uses all files stored in the
Optionally, in case of
Clients uses all files stored in the
The user name of the OS process running the Erlang virtual machine (emulator).
This is the directory holding the server's files:
The key files could be generated with OpenSSH's ssh-keygen command.
At least one host key must be defined. The default value of SYSDIR is
For security reasons, this directory is normally accessible only to the root user.
To change the SYSDIR, see the
This is the directory holding the files:
It is composed of lines as for
(options)? keytype base64-encoded-key comment
where
options :: option(,option)*
option :: % All options are skipped
keytype :: 'ssh-dsa'
| 'ssh-rsa'
| 'ssh-ecdsa-nistp256'
| 'ssh-ecdsa-nistp384'
| 'ssh-ecdsa-nistp521'
| 'ssh-ed25519'
| 'ssh-ed448'
base64-encoded-key :: % The user's public key
comment :: % Comments are skipped
It is composed of lines as for
(option)? pattern(,pattern)* keytype key (comment)?
where
option :: '@revoked'
pattern :: host | '[' host ']:' port
host :: ip-address | hostname | '*'
port :: portnumber | '*'
keytype :: 'ssh-dsa'
| 'ssh-rsa'
| 'ssh-ecdsa-nistp256'
| 'ssh-ecdsa-nistp384'
| 'ssh-ecdsa-nistp521'
| 'ssh-ed25519'
| 'ssh-ed448'
key :: % encoded key from eg ssh_host_*.pub
The key files could be generated with OpenSSH's ssh-keygen command.
The default value of USERDIR is
To change the USERDIR, see the
Sets the
Sets the
Sets the
If the user's DSA, RSA or ECDSA key is protected by a passphrase, it can be supplied with thoose options.
Note that EdDSA passhrases (Curves 25519 and 448) are not implemented.
Make the handling of large files fast by setting
To set it, set the
option
The key representation
Types for the experimental implementaition of the
Types and description
See the api description in
Options
Files
Types and description
See the api description in
Options
Files
This functions discards all options in the beginning of the lines of thoose files when reading them.
Types and description
See the api description in
Note that the alternative, the old
Option
File
Types and description
See the api description in
Note that the alternative, the old
Option
File
Types and description
See the api description in
Options
Note that EdDSA passhrases (Curves 25519 and 448) are not implemented.
Files
Decodes an SSH file-binary.
If
The following key types have been renamed from the deprecated
The implementation of the
Encodes a list of SSH file entries (public keys and attributes) to a binary.
The following key types have been renamed from the removed
The implementation of the
Fetches the public key from a private key.