axelson
Connect to a Nerves system using SSH
Is it possible to connect to a Nerves system using SSH? My goal for now is to get to the IEx prompt over SSH instead of over an FTDI cable. This will be useful especially after the unit is installed in a relatively inaccessible location.
I know that Nerves.Firmware.SSH — nerves_firmware_ssh v0.4.6 existsbut that appears to only be about deploying/updating firmware over SSH.
Most Liked
ConnorRigby
Have you tried remeshing? it is in my opinion much more stable.
There are also implementations for accessing the console over ssh.
here is one example of setting it up
lucaong
Even later reply. If you setup nerves_firmware_ssh, you should be then able to SSH (by default on port 8989) directly into the Erlang console. From there, just type 'Elixir.IEx':start(). to start an IEx console.
In fact, nerves_firmware_ssh makes use of the Erlang SSH module mentioned in the link posted above.
Hope this helps ![]()
xpg
I am using a separate SSH daemon, which runs the IEx shell:
system_dir = Nerves.Firmware.SSH.Application.system_dir()
{:ok, _ref} = :ssh.daemon(22, password: 'password', system_dir: system_dir, shell: {IEx, :start, []})
It’s not particulary secure in that way, but gets the job done.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








