I recently started a new Nerves application with my Raspberry Pi 3, using the mix nerves.new
command. I believe it sets up with Nerves Pack
. I have it connected to my home Wi-Fi network alongside my Mac.
I can access it through my display and a keyboard, plugged into a power supply, but I cannot ssh
into it for the life of me, and I have no idea why.
My configurations are below:
Nerves firmware: built with
MIX_TARGET=rpi3 mix firmware
VintageNet config (in config.exs
):
config :vintage_net, :config,
{"wlan0", %{
type: VintageNetWiFi,
vintage_net_wifi: %{
ssid: "MY_SSID",
psk: "MY_PASS"
},
ipv4: %{method: :dhcp},
hostname: "nerves-3ff8",
domains: ["local"]
}}
MdnsLite config (in the same target.exs
):
config :mdns_lite,
hosts: ["nerves"],
ttl: 120,
services: [
%{protocol: "ssh", transport: "tcp", port: 22},
%{protocol: "sftp-ssh", transport: "tcp", port: 22},
%{protocol: "epmd", transport: "tcp", port: 4369}
]
What I’ve verified on the Nerves device
$ ip addr show wlan0
3: wlan0: <…>
inet <IP> brd <IP> scope global wlan0
$ weather
...shows local weather information
What I have tried
ssh nerves.local
ssh root@nerves.local
ssh nerves-3ff8
ssh root@nerves-3ff8
ping IP
and all of them return:
connect to host nerves-3ff8.local port 22: Undefined error: 0
I can ping from within the nerves iex however.
Can anyone point me towards a solution? Im assuming a network issue? but Im not quite sure.