[erlang-questions] scp subsystem

Ingela Andin ingela.andin@REDACTED
Wed Mar 20 09:20:02 CET 2013


Hi!

2013/3/20, Stefan Jahn <stefan@REDACTED>:
> Hello,
>
> after some experiments I ended up with a working file transfer from
> standard scp command to my erlang scp daemon.
>
> Thank you for the hint with ssh_cli option.
>
> Now, I have a question about the connection / channel within the
> ssh_channel messages (handle_ssh_msg).  How do I get the user login
> name from this scope?

Well the cli option is the least mature part of the ssh application.
The standard cli
uses ssh_userreg:lookup_user/1 (ssh_cli.erl)  which is not a a
documented function at the moment.  We are interested in your
experiences for future improvment work.

>>> Can I add e.g. {subsystems, [ssh_sftp:subsystem_spec([])]}} having
>>> the sftp server in parallel?

Yes you can have subsystems in parallell to a cli-implementation (cli
option) or shell adaptation (shell option).

Regards Ingela Erlang/OTP team Ericsson AB



More information about the erlang-questions mailing list