Interface module for the SSH application
Type definitions that are used more than once in this module:
Closes a ssh connection.
Connects to an SSH server. No channel is started this is done by calling ssh_connect:session_channel/2.
Options are:
Sets the user directory e.i. the directory containing
ssh configuration files for the user such as
If the user dsa key is protected by a pass phrase it can be supplied with this option.
If the user rsa key is protected by a pass phrase it can be supplied with this option.
When true hosts are added to the
file
If false disables the client to connect to the server
if any user interaction is needed such as accepting that
the server will be added to the
Sets the preferred public key algorithm to use for user
authentication. If the the preferred algorithm fails of
some reason, the other algorithm is tried. The default is
to try
Sets a timeout on the transport layer connection. Defaults to infinity.
Provide a user name. If this option is not given, ssh
reads from the environment (
Provide a password for password authentication. If this option is not given, the user will be asked for a password if the password authentication method is attempted.
Provide a fun for password authentication. The fun
will be called as
Provide a special call-back module for key handling.
The call-back module should be modeled after the
Allow an existing file-descriptor to be used (simply passed on to the transport protocol).
Determines if SSH shall use IPv6 or not.
Retrieves information about a connection.
Starts a server listening for SSH connections on the given port.
Options are:
Sets the user directory e.i. the directory containing
ssh configuration files for the user such as
Sets the system directory, containing the host files
that identifies the host for ssh. The default is
Provide passwords for password authentication.They will be used when someone tries to connect to the server and public key user authentication fails. The option provides a list of valid user names and the corresponding password.
Provide a global password that will authenticate any user. From a security perspective this option makes the server very vulnerable.
Provide a function for password validation. This is called
with user and password as strings, and should return
Allow an existing file-descriptor to be used (simply passed on to the transport protocol).
Determines if SSH shall use IPv6 or not (only used when HostAddress is set to any).
Starts an interactive shell to an SSH server on the
given
Starts the Ssh application. Default type
is temporary. See also
Stops the Ssh application. See also
Stops the listener and all connections started by the listener.
Stops the listener, but leaves existing connections started by the listener up and running.