View Source NervesSSH.UserPasswords (nerves_ssh v0.4.3)

Default module used for checking User/Password combinations

This will allow 3 attempts to login with a username and password and then send SSH_MSG_DISCONNECT

Summary

Functions

Link to this function

check(name, user, password, ip, attempt)

View Source
@spec check(
  name :: GenServer.name(),
  :erlang.string(),
  :erlang.string(),
  :ssh.ip_port(),
  :undefined | non_neg_integer()
) :: boolean() | :disconnect | {boolean(), non_neg_integer()}