# RPI4 Image and Slow Starting SSH

**URL:** <https://forum.ubiquityrobotics.com/t/rpi4-image-and-slow-starting-ssh/486>\
**Category:** Uncategorized\
**Created:** [March 14, 2020, 9:38pm UTC](https://forum.ubiquityrobotics.com/t/rpi4-image-and-slow-starting-ssh/486 "2020-03-14T21:38:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![madgrizzle](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@madgrizzle](https://forum.ubiquityrobotics.com/u/madgrizzle)\
**Post date:** [March 14, 2020, 9:38pm UTC](https://forum.ubiquityrobotics.com/t/rpi4-image-and-slow-starting-ssh/486/1 "2020-03-14T21:38:30Z")

</div>

Thanks for putting the image together for an RPI4… saved me lots of time. I installed your first release and then (having to rebuild things) installed your latest release. Each one seems to take a real long time before SSH gets enabled… maybe 2-3 minutes after booting. Is this normal? (I’ve turned off the AP mode and connected the robot to my home’s WiFi using pifi).

---

<div class="post-metadata">

**Author:** ![MoffKalast](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/moffkalast/32/214_2.png) [@MoffKalast](https://forum.ubiquityrobotics.com/u/MoffKalast)\
**Post date:** [March 21, 2020, 12:34pm UTC](https://forum.ubiquityrobotics.com/t/rpi4-image-and-slow-starting-ssh/486/2 "2020-03-21T12:34:13Z")

</div>

It does generally need a minute or two indeed.

I think it may have something to do with a graceful shutdown. It’s back up almost immediately after a reboot and a lot sooner if it was shut down normally instead of unplugged since it then needs to verify the partition if I recall right.

---

<div class="post-metadata">

**Author:** ![tomkart](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/t/90db22/32.png) [@tomkart](https://forum.ubiquityrobotics.com/u/tomkart)\
**Post date:** [July 26, 2020, 2:51am UTC](https://forum.ubiquityrobotics.com/t/rpi4-image-and-slow-starting-ssh/486/3 "2020-07-26T02:51:44Z")

</div>

I ran into the same problem. After the fix, it takes only few seconds instead of 5 mins.

Edit /etc/network/interfaces and change “auto” for interfaces to “allow-hotplug”

```auto
sudo nano /etc/network/interfaces

```

Example: auto interface for ethernet card `auto eth0` change to `allow-hotplug eth0`

After that for me “systemd-analyze blame” -\> networking.service changes from 5 min to 2s

---

<div class="post-metadata">

**Author:** ![rohbotics](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/rohbotics/32/222_2.png) [@rohbotics](https://forum.ubiquityrobotics.com/u/rohbotics)\
**Post date:** [July 28, 2020, 5:21am UTC](https://forum.ubiquityrobotics.com/t/rpi4-image-and-slow-starting-ssh/486/4 "2020-07-28T05:21:47Z")

</div>

Hi @tomkart

This is great work, thanks!

There is also the workaround posted here: [ROS image on Raspberry Pi 4?](https://frm.ubiquityrobotics.com/t/ros-image-on-raspberry-pi-4/326/59) I should have copied that to this thread.

Rohan
