Search code examples
networkingsshraspberry-piputtyboot

Can't ssh into Raspberry pi running raspberry pi os 64 bit lite


TLDR - Raspberry pi 3 B, can't use ssh, I have tried many solutions listed below and more, any suggestions? hostname -I command returns a blank line

I cant use ssh, I have tried everything, sudo raspi-config, systemctl start / enable, creating an ssh file in the boot folder, setting the locale settings, I checked that the pi is connected to wifi and that my pc is connected to the same wifi, I think the most notable issue is that hostname -I returns a blank line. I even went so far as to use arp -a and just try to ssh into every ip and see what sticks but none of them worked. I have considered that maybe the computer itself is compromised in some way but it's in a solid case and it was previously running octo-pi with no issues. Anything helps so if you have an idea that I listed, I might have done it wrong so please suggest away.


Solution

  • Ensure you have a file called ssh (without any extensions) in the /boot directory of the OS on your microSD card. This missing file is usually the issue.

    If this does not exist, create one within the /boot dir and restart your pi.

    sudo -i
    cd /boot
    touch ssh
    chown root:root ssh
    chmod 755 ssh
    shutdown -r now
    

    The OS will find the file on bootup and activate SSH.