[erlang-bugs] ssh remote user authorized_keys

Ingela Anderton Andin Ingela.Anderton.Andin@REDACTED
Tue Apr 29 12:14:34 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

On 04/25/2014 11:28 AM, Dmitry Kolesnikov wrote:
> 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-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs
>






More information about the erlang-bugs mailing list