Can't SSH to fresh F40 IOT install

Trying to set up a new rpi4 with F40 IOT. been a while since I’ve done this so a bit rusty. I don’t have a usb C > HDMI dongle so flying blind.

I am trying this:

sudo arm-image-installer --image=Fedora-IoT-raw-40-20240422.3.aarch64.raw.xz --target=rpi4 --media=/dev/sdb --resizefs --addkey=/home/aireilly/.ssh/id_ed25519.pub --norootpass -y

and the rpi boots, but I can’t SSH. Keeps asking for password.

$ ssh root@192.168.1.55
root@192.168.1.55's password: 

when I mount the sd card, I can see

sudo cat /mnt/ostree/deploy/fedora-iot/var/roothome/.ssh/authorized_keys

And the key looks good.

What am I doing wrong?

By default ssh as root is disabled on fedora workstation. I cannot speak for IoT but suspect it would be the same.

The --norootpass would seem to indicate that root would not need a password, but ssh would still block that until it is explicitly enabled.

The config for sshd is located in /etc/ssh/sshd_config and /etc/ssh/sshd_config.d/
This appears to be the default for sshd config
#PermitRootLogin prohibit-password

You also added the key /home/aireilly/.ssh/id_ed25519.pub but are trying to log in as root.

After I have done the arm-image-installer I will mount the sdcard and config important changes. For RPi often need to edit config.txt etc.
As Jeff says you need to configure sshd.

Added iot

What you did looks correct. I can’t try myself right now.

Did you try to ssh specifying the key?
ssh -i /home/aireilly/.ssh/id_ed25519 root@192.168.1.55

OMG I was trying to SSH into the wrong rpi :sweat:

All I needed to do was ssh root@192.168.1.60

Sorry everybody :stuck_out_tongue:

For some reason, the MAC address of the Pi4 doesn’t report “Raspberry Pi Foundation” like older Pis.

Older rPi

Nmap scan report for 192.168.1.55
Host is up (0.0053s latency).
MAC Address: B8:27:EB:22:82:B1 (Raspberry Pi Foundation)

rPi4

Nmap scan report for 192.168.1.60
Host is up (0.00015s latency).
MAC Address: D8:3A:DD:68:E2:53 (Unknown)
3 Likes