I've set a .py file to run at startup of my Raspberry according to this guide : https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/
Method 4: Systemd
I did exactly as the tutorial, and the file does play at startup as expected. However, since that moment i've been unable to access the Raspberry via SSH or VNC, I ping to the Raspberry Address and I got positive response, but when I try to connect via SSH I get
"ssh: connect to host 192.168.1.250 port 22: Connection refused"
Since i'm working headless i'm unable to check what's wrong.
Any advice? thanks in advance!
Take the SD card out of the Raspberry Pi and put it in another computer. Create a file called ssh
in the boot
filesystem. Use touch ssh
to create the file.
Put SD card back in Raspberry Pi and reboot. You will be able to ssh
into it, then use sudo raspi-config
to enable ssh
permanently.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.