Finding or mounting boot partition to create /boot/sshShould I install NOOBS or Raspbian?SSH fix in headless modeSSH connection refused even though ssh file is in /bootCan't enable ssh for first boot because latest Raspbian image boot partition is read onlyHow do I enable SSH on raspbian stretch (2018-04-18) by default on boot without a monitorSSH and wpa_supplicant.conf file disappearingCan't find /boot nor etc folder in downloaded NOOBS in SD Card. Need to add wpa_supplicant.conf file to connect to wifi on first boot in headless mode“Put an empty 'ssh' file in /boot/” trick not working anymoreInitialize a headless RaspberryPi connected by Wifi, 100% from Windowsssh not working after creation ssh fileHow to get SSH access to headless Raspbian Stretch Lite? Official way seems not to work
Why should I allow multiple IP addresses on a website for a single session?
Classify 2-dim p-adic galois representations
2019 2-letters 33-length list
How come having a Deathly Hallow is not a big deal?
How useful would a hydroelectric power plant be in the post-apocalypse world?
Square wave to sawtooth wave using two BJT
What is the meaning of "it" in "as luck would have it"?
Crop production in mountains?
Are all notation equal by derivatives?
Is it OK to throw pebbles and stones in streams, waterfalls, ponds, etc.?
What was the ASCII end of medium (EM) character intended to be used for?
Other homotopy invariants?
How can I smooth the top side of this ring?
Avoiding repetition when using the "snprintf idiom" to write text
What could a Medieval society do with excess animal blood?
Could citing a database like libgen get one into trouble?
Synthesis of an epoxide from 1,2-diol
What's the difference between the Find Steed and Find Greater Steed spells?
Was Wolfgang Unziker the last Amateur GM?
What was the point of separating stdout and stderr?
Are the Gray and Death Slaad's Bite and Claw attacks magical?
My mom helped me cosign a car and now she wants to take it
I agreed to cancel a long-planned vacation (with travel costs) due to project deadlines, but now the timeline has all changed again
Why would Dementors torture a Death Eater if they are loyal to Voldemort?
Finding or mounting boot partition to create /boot/ssh
Should I install NOOBS or Raspbian?SSH fix in headless modeSSH connection refused even though ssh file is in /bootCan't enable ssh for first boot because latest Raspbian image boot partition is read onlyHow do I enable SSH on raspbian stretch (2018-04-18) by default on boot without a monitorSSH and wpa_supplicant.conf file disappearingCan't find /boot nor etc folder in downloaded NOOBS in SD Card. Need to add wpa_supplicant.conf file to connect to wifi on first boot in headless mode“Put an empty 'ssh' file in /boot/” trick not working anymoreInitialize a headless RaspberryPi connected by Wifi, 100% from Windowsssh not working after creation ssh fileHow to get SSH access to headless Raspbian Stretch Lite? Official way seems not to work
To permanently enable ssh for a headless setup, my understanding is that the simplest method is to create an empty file /boot/ssh on the boot partition. However, when I write to a file using this pathname, the change doesn't persist after I reboot. If I'm understanding correctly, then this is because I'm not actually accessing the boot partition, and I need to mount that somehow. How do I do that? I'm running Raspbian on a pi-zero, installed from NOOBS.
headless
New contributor
Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
To permanently enable ssh for a headless setup, my understanding is that the simplest method is to create an empty file /boot/ssh on the boot partition. However, when I write to a file using this pathname, the change doesn't persist after I reboot. If I'm understanding correctly, then this is because I'm not actually accessing the boot partition, and I need to mount that somehow. How do I do that? I'm running Raspbian on a pi-zero, installed from NOOBS.
headless
New contributor
Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Have you tested that the ssh server is not now always started after a reboot?
– GramThanos
Jun 24 at 0:55
@GramThanos: What I meant was that the file no longer exists after a reboot.
– Ben Crowell
Jun 24 at 1:07
I know, it is normal.
– GramThanos
Jun 24 at 1:18
add a comment |
To permanently enable ssh for a headless setup, my understanding is that the simplest method is to create an empty file /boot/ssh on the boot partition. However, when I write to a file using this pathname, the change doesn't persist after I reboot. If I'm understanding correctly, then this is because I'm not actually accessing the boot partition, and I need to mount that somehow. How do I do that? I'm running Raspbian on a pi-zero, installed from NOOBS.
headless
New contributor
Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
To permanently enable ssh for a headless setup, my understanding is that the simplest method is to create an empty file /boot/ssh on the boot partition. However, when I write to a file using this pathname, the change doesn't persist after I reboot. If I'm understanding correctly, then this is because I'm not actually accessing the boot partition, and I need to mount that somehow. How do I do that? I'm running Raspbian on a pi-zero, installed from NOOBS.
headless
headless
New contributor
Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Jun 24 at 0:44
Ben CrowellBen Crowell
1437 bronze badges
1437 bronze badges
New contributor
Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Have you tested that the ssh server is not now always started after a reboot?
– GramThanos
Jun 24 at 0:55
@GramThanos: What I meant was that the file no longer exists after a reboot.
– Ben Crowell
Jun 24 at 1:07
I know, it is normal.
– GramThanos
Jun 24 at 1:18
add a comment |
1
Have you tested that the ssh server is not now always started after a reboot?
– GramThanos
Jun 24 at 0:55
@GramThanos: What I meant was that the file no longer exists after a reboot.
– Ben Crowell
Jun 24 at 1:07
I know, it is normal.
– GramThanos
Jun 24 at 1:18
1
1
Have you tested that the ssh server is not now always started after a reboot?
– GramThanos
Jun 24 at 0:55
Have you tested that the ssh server is not now always started after a reboot?
– GramThanos
Jun 24 at 0:55
@GramThanos: What I meant was that the file no longer exists after a reboot.
– Ben Crowell
Jun 24 at 1:07
@GramThanos: What I meant was that the file no longer exists after a reboot.
– Ben Crowell
Jun 24 at 1:07
I know, it is normal.
– GramThanos
Jun 24 at 1:18
I know, it is normal.
– GramThanos
Jun 24 at 1:18
add a comment |
2 Answers
2
active
oldest
votes
From the raspberry pi ssh documentation page (here)
When the Pi boots, it looks for the ssh file. If it is found, SSH is
enabled and the file is deleted.
Don't forget to change the default password.
I see...so is the effect permanent, even though the file gets deleted?
– Ben Crowell
Jun 24 at 1:32
The file is just an easy way to set the ssh server to auto start.
– GramThanos
Jun 24 at 1:38
Thanks. What I'm trying to ask is, if I then reboot a second time, with the file no longer existing, will ssh still be enabled?
– Ben Crowell
Jun 24 at 1:42
1
Yes. You created the ssh file inside the boot partition, the raspberry saw it and deleted it, it set the ssh service to start on boot, and now ssh server will start every time automatically.
– GramThanos
Jun 24 at 1:47
So you may now, change the default pi password and set a static ip to your raspberry (if you want) :P
– GramThanos
Jun 24 at 1:48
add a comment |
You NEED a keyboard and display to setup NOOBS so the solution to enable ssh on a headless system is superfluous.
This CANNOT be done on NOOBS, until Raspbian is installed (because the boot partition does not exist).
Just enable ssh through raspi-config (or the GUI equivalent).
I have a keyboard and display. I'm setting the pi up initially using them, so that I can run it headless later.
– Ben Crowell
Jun 24 at 3:43
1
If you want to run headless DO NOT use NOOBS (which wastes 1.3GB of your SD Card) and is only useful for multi-boot. Install Raspbian!
– Milliways
Jun 24 at 3:49
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
return StackExchange.using("schematics", function ()
StackExchange.schematics.init();
);
, "cicuitlab");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "447"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Ben Crowell is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fraspberrypi.stackexchange.com%2fquestions%2f99875%2ffinding-or-mounting-boot-partition-to-create-boot-ssh%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
From the raspberry pi ssh documentation page (here)
When the Pi boots, it looks for the ssh file. If it is found, SSH is
enabled and the file is deleted.
Don't forget to change the default password.
I see...so is the effect permanent, even though the file gets deleted?
– Ben Crowell
Jun 24 at 1:32
The file is just an easy way to set the ssh server to auto start.
– GramThanos
Jun 24 at 1:38
Thanks. What I'm trying to ask is, if I then reboot a second time, with the file no longer existing, will ssh still be enabled?
– Ben Crowell
Jun 24 at 1:42
1
Yes. You created the ssh file inside the boot partition, the raspberry saw it and deleted it, it set the ssh service to start on boot, and now ssh server will start every time automatically.
– GramThanos
Jun 24 at 1:47
So you may now, change the default pi password and set a static ip to your raspberry (if you want) :P
– GramThanos
Jun 24 at 1:48
add a comment |
From the raspberry pi ssh documentation page (here)
When the Pi boots, it looks for the ssh file. If it is found, SSH is
enabled and the file is deleted.
Don't forget to change the default password.
I see...so is the effect permanent, even though the file gets deleted?
– Ben Crowell
Jun 24 at 1:32
The file is just an easy way to set the ssh server to auto start.
– GramThanos
Jun 24 at 1:38
Thanks. What I'm trying to ask is, if I then reboot a second time, with the file no longer existing, will ssh still be enabled?
– Ben Crowell
Jun 24 at 1:42
1
Yes. You created the ssh file inside the boot partition, the raspberry saw it and deleted it, it set the ssh service to start on boot, and now ssh server will start every time automatically.
– GramThanos
Jun 24 at 1:47
So you may now, change the default pi password and set a static ip to your raspberry (if you want) :P
– GramThanos
Jun 24 at 1:48
add a comment |
From the raspberry pi ssh documentation page (here)
When the Pi boots, it looks for the ssh file. If it is found, SSH is
enabled and the file is deleted.
Don't forget to change the default password.
From the raspberry pi ssh documentation page (here)
When the Pi boots, it looks for the ssh file. If it is found, SSH is
enabled and the file is deleted.
Don't forget to change the default password.
edited Jun 24 at 1:41
answered Jun 24 at 1:18
GramThanosGramThanos
4112 silver badges11 bronze badges
4112 silver badges11 bronze badges
I see...so is the effect permanent, even though the file gets deleted?
– Ben Crowell
Jun 24 at 1:32
The file is just an easy way to set the ssh server to auto start.
– GramThanos
Jun 24 at 1:38
Thanks. What I'm trying to ask is, if I then reboot a second time, with the file no longer existing, will ssh still be enabled?
– Ben Crowell
Jun 24 at 1:42
1
Yes. You created the ssh file inside the boot partition, the raspberry saw it and deleted it, it set the ssh service to start on boot, and now ssh server will start every time automatically.
– GramThanos
Jun 24 at 1:47
So you may now, change the default pi password and set a static ip to your raspberry (if you want) :P
– GramThanos
Jun 24 at 1:48
add a comment |
I see...so is the effect permanent, even though the file gets deleted?
– Ben Crowell
Jun 24 at 1:32
The file is just an easy way to set the ssh server to auto start.
– GramThanos
Jun 24 at 1:38
Thanks. What I'm trying to ask is, if I then reboot a second time, with the file no longer existing, will ssh still be enabled?
– Ben Crowell
Jun 24 at 1:42
1
Yes. You created the ssh file inside the boot partition, the raspberry saw it and deleted it, it set the ssh service to start on boot, and now ssh server will start every time automatically.
– GramThanos
Jun 24 at 1:47
So you may now, change the default pi password and set a static ip to your raspberry (if you want) :P
– GramThanos
Jun 24 at 1:48
I see...so is the effect permanent, even though the file gets deleted?
– Ben Crowell
Jun 24 at 1:32
I see...so is the effect permanent, even though the file gets deleted?
– Ben Crowell
Jun 24 at 1:32
The file is just an easy way to set the ssh server to auto start.
– GramThanos
Jun 24 at 1:38
The file is just an easy way to set the ssh server to auto start.
– GramThanos
Jun 24 at 1:38
Thanks. What I'm trying to ask is, if I then reboot a second time, with the file no longer existing, will ssh still be enabled?
– Ben Crowell
Jun 24 at 1:42
Thanks. What I'm trying to ask is, if I then reboot a second time, with the file no longer existing, will ssh still be enabled?
– Ben Crowell
Jun 24 at 1:42
1
1
Yes. You created the ssh file inside the boot partition, the raspberry saw it and deleted it, it set the ssh service to start on boot, and now ssh server will start every time automatically.
– GramThanos
Jun 24 at 1:47
Yes. You created the ssh file inside the boot partition, the raspberry saw it and deleted it, it set the ssh service to start on boot, and now ssh server will start every time automatically.
– GramThanos
Jun 24 at 1:47
So you may now, change the default pi password and set a static ip to your raspberry (if you want) :P
– GramThanos
Jun 24 at 1:48
So you may now, change the default pi password and set a static ip to your raspberry (if you want) :P
– GramThanos
Jun 24 at 1:48
add a comment |
You NEED a keyboard and display to setup NOOBS so the solution to enable ssh on a headless system is superfluous.
This CANNOT be done on NOOBS, until Raspbian is installed (because the boot partition does not exist).
Just enable ssh through raspi-config (or the GUI equivalent).
I have a keyboard and display. I'm setting the pi up initially using them, so that I can run it headless later.
– Ben Crowell
Jun 24 at 3:43
1
If you want to run headless DO NOT use NOOBS (which wastes 1.3GB of your SD Card) and is only useful for multi-boot. Install Raspbian!
– Milliways
Jun 24 at 3:49
add a comment |
You NEED a keyboard and display to setup NOOBS so the solution to enable ssh on a headless system is superfluous.
This CANNOT be done on NOOBS, until Raspbian is installed (because the boot partition does not exist).
Just enable ssh through raspi-config (or the GUI equivalent).
I have a keyboard and display. I'm setting the pi up initially using them, so that I can run it headless later.
– Ben Crowell
Jun 24 at 3:43
1
If you want to run headless DO NOT use NOOBS (which wastes 1.3GB of your SD Card) and is only useful for multi-boot. Install Raspbian!
– Milliways
Jun 24 at 3:49
add a comment |
You NEED a keyboard and display to setup NOOBS so the solution to enable ssh on a headless system is superfluous.
This CANNOT be done on NOOBS, until Raspbian is installed (because the boot partition does not exist).
Just enable ssh through raspi-config (or the GUI equivalent).
You NEED a keyboard and display to setup NOOBS so the solution to enable ssh on a headless system is superfluous.
This CANNOT be done on NOOBS, until Raspbian is installed (because the boot partition does not exist).
Just enable ssh through raspi-config (or the GUI equivalent).
answered Jun 24 at 3:34
MilliwaysMilliways
32.2k14 gold badges57 silver badges123 bronze badges
32.2k14 gold badges57 silver badges123 bronze badges
I have a keyboard and display. I'm setting the pi up initially using them, so that I can run it headless later.
– Ben Crowell
Jun 24 at 3:43
1
If you want to run headless DO NOT use NOOBS (which wastes 1.3GB of your SD Card) and is only useful for multi-boot. Install Raspbian!
– Milliways
Jun 24 at 3:49
add a comment |
I have a keyboard and display. I'm setting the pi up initially using them, so that I can run it headless later.
– Ben Crowell
Jun 24 at 3:43
1
If you want to run headless DO NOT use NOOBS (which wastes 1.3GB of your SD Card) and is only useful for multi-boot. Install Raspbian!
– Milliways
Jun 24 at 3:49
I have a keyboard and display. I'm setting the pi up initially using them, so that I can run it headless later.
– Ben Crowell
Jun 24 at 3:43
I have a keyboard and display. I'm setting the pi up initially using them, so that I can run it headless later.
– Ben Crowell
Jun 24 at 3:43
1
1
If you want to run headless DO NOT use NOOBS (which wastes 1.3GB of your SD Card) and is only useful for multi-boot. Install Raspbian!
– Milliways
Jun 24 at 3:49
If you want to run headless DO NOT use NOOBS (which wastes 1.3GB of your SD Card) and is only useful for multi-boot. Install Raspbian!
– Milliways
Jun 24 at 3:49
add a comment |
Ben Crowell is a new contributor. Be nice, and check out our Code of Conduct.
Ben Crowell is a new contributor. Be nice, and check out our Code of Conduct.
Ben Crowell is a new contributor. Be nice, and check out our Code of Conduct.
Ben Crowell is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Raspberry Pi Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fraspberrypi.stackexchange.com%2fquestions%2f99875%2ffinding-or-mounting-boot-partition-to-create-boot-ssh%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Have you tested that the ssh server is not now always started after a reboot?
– GramThanos
Jun 24 at 0:55
@GramThanos: What I meant was that the file no longer exists after a reboot.
– Ben Crowell
Jun 24 at 1:07
I know, it is normal.
– GramThanos
Jun 24 at 1:18