Erlang/OTP Forums

Author Message

<  Erlang  ~  SSH in R12B-5

igwan
Posted: Thu Nov 06, 2008 3:46 pm Reply with quote
Joined: 06 Nov 2008 Posts: 1
Hi,

I'm trying to setup a sftp daemon in an Erlang node using R12B-5 on kernel 2.6.24.5 #4 SMP i686 GNU/Linux.

Code:
Erlang (BEAM) emulator version 5.6.5 [source] [smp:4] [async-threads:0] [hipe] [kernel-poll:false]

1> ssh:daemon(1609, [{subsystems,[ssh_sftpd:subsystem_spec([{cwd,"/tmp"},{root,"/tmp"},{file_handler,ssh_sftpd_file}])]},{system_dir, "/home/igwan/keys"}, {pwdfun,fun("user","password")-> true end}, {nodelay, true}]).


I try to connect to it using WinSCP. Authentication succeeds but then the communication timeouts. With SASL started I see progress reports showing that ssh_cli is started and there are no crash reports.

Code:
=PROGRESS REPORT==== 5-Nov-2008::19:37:00 ===
         supervisor: {<0.110.0>,ssh_channel_sup}
            started: [{pid,<0.114.0>},
                      {name,#Ref<0.0.0.265>},
                      {mfa,
                       {gen_server,start_link,
                        [ssh_cli,
...


I also tried to get a simple shell from Putty using :
Code:

1> ssh:daemon(1609, [{subsystems,[]},{system_dir, "/home/igwan/keys"}, {pwdfun,fun("user","password")-> true end}, {nodelay, true}]).


but still, while I am able to authenticate and ssh_cli is started according to progress reports, nothing is displayed nor echoed on the putty window.

Thanks for you help

--
igwan
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum