I tried for some time to connect to a remote ssh server using elixir.
This is what I do in IEX:
[Macintosh] elixir/logglycious (master|…)> iex 15-07-20 0:11
Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]
Interactive Elixir (1.0.4) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> :application.start(:crypto)
{:error, {:already_started, :crypto}}
iex(2)> :application.start(:public_key)
{:error, {:not_started, :asn1}}
iex(3)> :application.start(:asn1)
:ok
iex(4)> :application.start(:public_key)
:ok
iex(5)> :application.start(:ssl)
:ok
iex(6)> :application.start(:ssh)
:ok
iex(7)> :ssh.connect("my.server.co.uk", 22, [ { :user, 'my_username' } ])
{:error, {:options, {:socket_options, [:inet]}}}
iex(8)>
First of all, I have to say that this error message does not help at all. However, I got a lot of community support on Slack. Someone suggested launching the inets application. I made and tried to reconnect, but got the same error again.
What am I doing wrong? More importantly, how can I find a solution to this problem next time?
[FIXED] . . , . , . , , . :ssh.start - , .