[erlang-questions] ssh remote user authorized_keys
Dmitry Kolesnikov
dmkolesnikov@REDACTED
Fri Apr 25 11:28:46 CEST 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140425/52557c50/attachment.htm>
More information about the erlang-questions
mailing list