Raspberry Pi 4 Unable to Connect via SSH

This is for ARMv8 based devices

Raspberry Pi 4 Unable to Connect via SSH

Postby myp0402 » Mon May 13, 2024 5:27 pm

After installing Arch Linux ARM, I confirmed that it booted successfully (as the tty interface was displayed when connected via HDMI). However, lacking a keyboard, I needed to connect via SSH. Even though I entered the correct password, SSH still couldn't establish a connection, and I'm unsure why.

I attempted to arch-chroot into the system on the SD card, used the passwd command to reset the password for alarm, and modified the sshd_config file to set PasswordAuthentication to yes, but to no avail.

Subsequently, I tried public key authentication (still using chroot to append the public key to the authorized_keys file), but it didn't work either; it still prompted me for a password.

Moreover, even after allowing root login, root couldn't log in either.

Below are some screenshots.

[img]https://i.ibb.co/09KgSjK/2024-05-14-01-24-02.png[/img]
[img]https://i.ibb.co/V9bS7XC/2024-05-14-01-23-55.png[/img]

Thanks!
myp0402
 
Posts: 1
Joined: Mon May 13, 2024 5:13 pm

Re: Raspberry Pi 4 Unable to Connect via SSH

Postby Rapty » Tue May 14, 2024 5:10 pm

Is it possible keyboard layout is different between initial password creation and ssh session ?
Also check your ssh keys permission. If they have been made with root account they might be unreadable.

Eventually post your sshd.conf
Rapty
 
Posts: 34
Joined: Sat Dec 26, 2020 5:31 pm


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 4 guests