After upgrading erlang from 18.3 to 19.x i have troubles when connecting to a SFTP server.
As some remote servers work and others don’t i need to debug the SSH connection.
The erlang docs for ssh.connect state that there is an option for defining a custom debug function:
{ssh_msg_debug_fun, fun(ConnectionRef::ssh_connection_ref(), AlwaysDisplay::boolean(), Msg::binary(), LanguageTag::binary()) -> _}
In Elixir i tried to add this option when calling :ssh.connect
ssh_msg_debug_fun: fn(_, _, msg, _) -> IO.inspect(msg) end
but it didn’t show/print any log.
Do you have experience with debugging the Erlang ssh/sftp applications?
Any help welcome