[erlang-questions] how: ssh_sftpd/ssh_sftp question

Mateusz Berezecki <>
Wed Nov 21 18:05:15 CET 2007


Hello list readers,


I have a problem with ssh_sftpd/ssh_sftp pair.
The following code does not work as expected...


1> crypto:start().
ok
2> ssh:start().
ok
3> ssh_sftpd:listen(1234).
{ok,<0.46.0>}
4> ssh_sftp:connect("127.0.0.1", 1234, []).
{error,{error,{error,closed}}}

=ERROR REPORT==== 21-Nov-2007::18:04:27 ===
** Generic server <0.54.0> terminating
** Last message in was {'EXIT',<0.47.0>,{error,enoent}}
** When Server state == {state,server,<0.47.0>,19,[],
                                [{<0.56.0>,#Ref<0.0.0.127>}],
                                0,[],[],undefined}
** Reason for termination ==
** {error,enoent}
5>


Can somebody explain to me how to properly establish a working  
connection ?


regards,
Mateusz Berezecki



More information about the erlang-questions mailing list