[erlang-questions] ssh remote user authorized_keys

Ingela Andin <>
Tue Apr 29 11:08:26 CEST 2014


Hi!

Will have to look into this and see what we can do to improve the
situation. I have created a ticket
to handle the issue.

Regards Ingela Erlang/OTP Team - Ericsson AB


2014-04-25 11:28 GMT+02:00 Dmitry Kolesnikov <>:

> Hello,
>
> I’ve notice that Erlang SSH daemon do not expand the user_dir with the
> name of remote user, who tries to log-in. Thus a single instance of
> authorised_keys exist on the server for all users. Same time, there is
> undocumented user_dir_fun config option that takes a function which map
> remote user to its “home” folder.
>
> The question is where is the bug?
>
> At documentation: http://www.erlang.org/doc/man/ssh.html user_dir_fun is
> not defined
>
> At ssh_file.erl:
>
> — CLIP —
>
> ssh_dir({remoteuser, User}, Opts) ->
>    case proplists:get_value(user_dir_fun, Opts) of
> undefined ->
>     case proplists:get_value(user_dir, Opts) of
>  undefined ->
>      default_user_dir();
>  Dir ->
>      Dir
>     end;
> FUN ->
>     FUN(User)
>    end;
>
> — CLIP —
>
> Best Regards,
> Dmitry
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140429/a7115773/attachment.html>


More information about the erlang-questions mailing list