[erlang-questions] Example usage of ssh_sshd

t ty <>
Sat Feb 24 17:00:12 CET 2007


Thanks Tobbe,

I missed a step when generating my keys. After generating the public
key I forgot to add it into the authorized_keys file.  That did the
trick.

t

On 2/24/07, Torbjorn Tornkvist <> wrote:
> Hi,
>
> I found that I needed to have a couple of SSH Host keys
> en the 'system_dir'. So after putting a DSA public/private
> key there it worked for me with the same set of arguments
> to ssh_sshd:listen as you are using.
>
> --Tobbe
>
>
> t ty wrote:
> > 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
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list