Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh file disappears after first boot #32

Open
sgallou opened this issue Jun 14, 2018 · 2 comments
Open

ssh file disappears after first boot #32

sgallou opened this issue Jun 14, 2018 · 2 comments

Comments

@sgallou
Copy link

sgallou commented Jun 14, 2018

Hi,

I tried to enable ssh by default from a custom plugin, so I added this in my postinst script :

touch /boot/ssh

But after write image on SDCard, the file does not exist in the boot partition.

If I create it manually, it will be erased at first Pi start. I need to recreate it a second time to make SSH work.

What I'm doing wrong ? Is there another mean to enable SSH ?

Thanks,
sgallou

@TheSin-
Copy link
Owner

TheSin- commented Jun 14, 2018

the pi need to boot twice for ssh to work, and it should do it on it's own, first boot creates the keys, keys aren't created cause every device needs unique keys so they can not be part of the image, once they are created the pi should reboot, and ssh should work. I have no idea what /boot/ssh does?

@sgallou
Copy link
Author

sgallou commented Jun 15, 2018

Adding a /boot/ssh empty file enable SSH on headless RaspberryPi (see "3. Enable SSH on a headless Raspberry Pi" on this page).
Should SSH work without adding this file ?

I let enough time (I hope) for RaspberryPi to make all its initialization, more than 10 minutes. Must I reboot manually to pass the second boot ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants