[erlang-questions] Example usage of ssh_sshd

t ty tty.erlang@REDACTED
Sat Feb 24 04:41:40 CET 2007


Hello,

Does someone have a simple example usage of ssh_sshd. On Linux  2.6.6
Debian I get an enoent error.

On the server side:

Erlang (BEAM) emulator version 5.5.1 [source] [async-threads:0] [hipe]

Eshell V5.5.1  (abort with ^G)
1> crypto:start().
ok
2> ssh:start().
ok
3> ssh_sshd:listen(5675, [{system_dir, "."}, {user_passwords,
[{"myself","secret"}]}])
3> .
{ok,<0.47.0>}
4>
=ERROR REPORT==== 23-Feb-2007::22:28:25 ===
** Generic server <0.53.0> terminating
** Last message in was {'EXIT',<0.50.0>,{error,enoent}}
** When Server state == {state,server,
                               <0.50.0>,
                               18,
                               [],
                               [{<0.55.0>,#Ref<0.0.0.114>}],
                               0,
                               [{system_dir,"."},
                                {user_passwords,[{"myself","secret"}]}],
                               [],
                               undefined}
** Reason for termination ==
** {error,enoent}

                                 ----------------------------------

On the client side:

$> ssh -l myself -p 5675 192.168.0.100

I tried using a full path in system_dir but encountered the same problem.

Regards,

t



More information about the erlang-questions mailing list