Erlang sshモジュールで遊ぼうとした tried to play by Erlang ssh module

最初はこのモジュール簡単に使えるんじゃないかなーとか思ってたんだけどそげぶされた。。。
リファレンス読んでこんなふうにリモートにつなごうとしたんだけど標準入力がブロッキングされて詰んだ

1>application:start(crypto).
ok
2>application:start(ssh).
ok
3>{ok, Ref} = ssh:connect("example.com", 22, [{user, "user"}, {password, "passwd"}]).
New host example.com accept [y/n]?

あわわわ。Erlang Question ML探してこんなのみつけた
http://erlang.2086793.n4.nabble.com/SSH-client-example-td2106867.html
あとこのコードも参考にした
https://github.com/jj1bdx/sshrpc/blob/master/src/client_test_nonotp.erl

読んでからいざリベンジ。

1>application:start(crypto).
ok
2>application:start(ssh).
ok
3>ssh:shell("example.com", [{user, "user"}, {password, "passwd"}, {silently_accept_hosts, true}]).
>ls
Desktop
Documents
Downloads
Library
Mail
Maildir
Movies
Music
Pictures
Public
.
.
.

ははぁ、リモートマシンにつなぐときは{silently_accept_hosts, true}でやるとブロッキングされずにできるみたい。
結局ssh_channel:send/2使ってリモートマシンと通信はできなかったけど近いうちにやる。

以下英文

At first, I thought I could use this module easily. But the expectation was broken.
First of all, I read user reference page and tried to connect to remote host by as follows, but standard input was strangely blocked:

1>application:start(crypto).
ok
2>application:start(ssh).
ok
3>{ok, Ref} = ssh:connect("example.com", 22, [{user, "user"}, {password, "passwd"}]).
New host example.com accept [y/n]?

Oops. I searched in Erlang Question ML so that I found this page:
http://erlang.2086793.n4.nabble.com/SSH-client-example-td2106867.html
And, I also referred this code:
https://github.com/jj1bdx/sshrpc/blob/master/src/client_test_nonotp.erl

After reading two codes, I revenged to use ssh.

1>application:start(crypto).
ok
2>application:start(ssh).
ok
3>ssh:shell("example.com", [{user, "user"}, {password, "passwd"}, {silently_accept_hosts, true}]).
>ls
Desktop
Documents
Downloads
Library
Mail
Maildir
Movies
Music
Pictures
Public
.
.
.

Hah, when we connect some hosts, we can connect with adding option{silently_accept_hosts, true} so that standard input isn't blocked.
After all, I couldn't communicate with remote machine using ssh_channel:send/2. I'll try one of these days.