Nerves 1.11.1 IEx not accessible through ssh

Made upgrade from elixir-1.15 OTP-25. to 1.17.2 OTP-27

My application on rpi still working :slight_smile:
I can do ./upload
I can use sftp
and even run elixir command use
macOS> ssh address command

But my tries to start remote IEx
macOS> ssh address
return: Connection address closed.

I follow documentation:
In vm.args.eex change
-run elixir start_iex.
To
-run elixir start_cli

Thx

-----Thus ssh log info

debug1: Authentication succeeded (publickey).
Authenticated ***.local ([192.168.68.220]:22).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Entering interactive session.
debug1: pledge: network
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: fd 6 setting TCP_NODELAY
debug2: client_session2_setup: id 0
debug1: Sending environment.
debug1: Sending env LC_CTYPE = UTF-8
debug2: channel 0: request env confirm 0
debug2: channel 0: request shell confirm 1
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 360448 rmax 65536
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
debug2: channel 0: rcvd eof
debug2: channel 0: output open → drain
debug2: channel 0: obuf empty
debug2: channel 0: chan_shutdown_write (i0 o1 sock -1 wfd 8 efd 9 [write])
debug2: channel 0: output drain → closed

If you run the ssh command with RingLogger.next after a failed login maybe you can get some details. I am pretty sure I’ve run roughly these versions with no issue but will try it if you don’t find anything :slight_smile:

This is actually related to the nerves_ssh version and not the nerves version.

What version of nerves_ssh are you using? You’ll need >= 1.0.0. There were changes to how Elixir 1.17 would start a shell that needed to be adjusted in newer versions of nerves_ssh lib.

2 Likes

Thx! I used 0.4.3 (and even did not know about 1.0 :slight_smile:
Tomorrow will try