Is there any linux image which I can boot from grub, runs in the RAM and provides ssh access?
I need this to setup a remote system to which I don't have console access and the defaults provided don't fit my needs.
|
Is there any linux image which I can boot from grub, runs in the RAM and provides ssh access? I need this to setup a remote system to which I don't have console access and the defaults provided don't fit my needs. | |||
feedback
|
|
If we're talking about normal installation media for installation or diagnostic/recovery purposes, the Debian installer (media, installation guide) can be run over ssh after the console user answers a few questions in expert mode. This comment includes preseed settings you can use to have the installer automatically start up sshd, reproduced below for a system that will get its address over DHCP:
You can either use the method given in the link above to put the preseed file directly on the system's boot media, or you should be able to put a URL for the preseed file in the boot configuration. | |||
|
feedback
|
|
Per Wikipedia, Damn Small Linux offers a version which runs entirely out of the initrd and never pivots over to a full system. I've never actually taken the time to set this up, but it seems like what you're looking for. The Wikipedia page notes that you could even use this initrd to netboot from PXE. | |||
|
feedback
|
|
The solution that worked very well for me was sysresccd So here are the steps:
| |||
|
feedback
|