[erlang-questions] User provided authentication function in, ssh_cli

Ingela Anderton Andin ingela@REDACTED
Thu Mar 1 11:29:42 CET 2007

We admit the ssh application is very sparsely  documented, this will 
change in the future.
You should however be aware that before a function is documented 
properly it is not considered a
part of the API and may be changed without warning.

Regards Ingela - OTP team

> While working on an ssh based cli, using ssh_cli, I discovered an
> undocumented feature.

> start the listener with

> ssh_cli:listen(UserFun,Port,[{pwdfun,F}])

> where
> F(User,Passwd) -> true | {false,Reason}

> And F will be called to vaildate the user/password.

More information about the erlang-questions mailing list