[erlang-questions] beginner: Alternative ways to start ssh application?

Bengt Kleberg bengt.kleberg@REDACTED
Fri Jul 20 09:19:10 CEST 2012


application:start(ssh) gives the same error as ssh:start(). Ie
{error,{already_started,ssh}}

So, the question remains, if ssh_sftp:start_channel/2 says
{error,ssh_not_started}
how do I start ssh, if it is already started?


bengt

And On Fri, 2012-07-20 at 08:43 +0200, Samuel wrote:
> > Is there more ways than ssh:start/0 to start ssh?
> 
> Start the ssh application?
> 
> 1> application:start(crypto).
> ok
> 2> application:start(ssh).
> ok
> 3> ssh_sftp:start_channel("192.168.1.1", [{user, "foo"}, {password, "bar"}]).
> ...
> 





More information about the erlang-questions mailing list