"Christmas - the time to fix the computers of your loved ones" « Lord Wyrm

SystemRescueCd mit SSH-Server starten.

fogerl 13.01.2014 - 22:12 3391 5
Posts

fogerl

Little Overclocker
Registered: Jan 2005
Location: Wien
Posts: 98
Hallo zusammen!

Ich würde gerne einen Rechner an dem weder Bildschirm noch Tastatur und Maus angeschlossen sind mit SystemRescueCd-USB-Stick administrieren können. (Dass er grundsätzlich von einem USB-Stick starten kann, also dass er über's BIOS hinauskommt werde ich sicherstellen.)

Leider wird ein SSH-Server nicht automatisch gestartet, dass muss ich erst noch manuell so einrichten.

Folgender Absatz macht mir Hoffnung, dass das allerdings so schwer wohl nicht zu bewerkstelligen sein wird:
Zitat
SSH allows you to use a shell on another computer (as telnet does), and you can copy files (with scp). If you want to run an SSH server, you have to change the root password. Just type passwd and give a valid password. You can also use the rootpass=xxx boot option before SystemRescueCd starts to define the root password.

The ssh server is automatically started but you can type the following command anyway: /etc/init.d/sshd restart. You can stop it with /etc/init.d/sshd stop Of course you can also use SystemRescueCd as an SSH client to connect to an SSH server: just use ssh protected or scp source dest. Both source and dest may be local or remote. Use protected:/path/filename for remote files.

Gehe ich richtig in der Annahme, dass ich summa summarum die grub-381.cfg die unter \boot\grub im .iso enthalten ist also einfach nur folgendermaßen abändern muss?

* Zeile 3 auf "set default=1" abändern (ich will den USB-Stick gerne entfernen können.)
* Zeile 24 um " rootpass=xxx" ergänzen

Code:
# Global options
set timeout=90
set default=0
set fallback=1
set pager=1

# Display settings
if loadfont /boot/grub/font.pf2 ; then
	set gfxmode=auto
	insmod efi_gop
	insmod efi_uga
	insmod gfxterm
	terminal_output gfxterm
fi

menuentry "SystemRescueCd (64bit, default boot options)" {
	set gfxpayload=keep
	linux	/isolinux/rescue64
	initrd	/isolinux/initram.igz
}

menuentry "SystemRescueCd (64bit, cache all files in memory)" {
	set gfxpayload=keep
	linux	/isolinux/rescue64 docache
	initrd	/isolinux/initram.igz
}

menuentry "SystemRescueCd (64bit, alternative kernel with default options)" {
	set gfxpayload=keep
	linux	/isolinux/altker64
	initrd	/isolinux/initram.igz
}

menuentry "SystemRescueCd (64bit, disable Kernel-Mode-Settings)" {
	set gfxpayload=keep
	linux	/isolinux/rescue64 nomodeset
	initrd	/isolinux/initram.igz
}

menuentry "SystemRescueCd (64bit, directly start the grahical environment)" {
	set gfxpayload=keep
	linux	/isolinux/rescue64 dostartx
	initrd	/isolinux/initram.igz
}

menuentry "Boot exising Linux OS installed on the disk (64bit kernel)" {
	set gfxpayload=keep
	linux	/isolinux/rescue64 root=auto
	initrd	/isolinux/initram.igz
}

Danke! :)

Ringding

Pilot
Avatar
Registered: Jan 2002
Location: Perchtoldsdorf/W..
Posts: 4300
Ich weiß nicht, wie das bei den aktuellen SystemRescudeCDs ist, aber meine booten noch über syslinux. Da wird das Anpassen der grub-Config nix bringen. Es kommt mir so vor, dass der EFI-Boot über GRUB läuft. Vielleicht haben sie mittlerweile auch den BIOS-Boot auf GRUB umgestellt.

Zumindest bei mir muss man das Netzwerk immer händisch starten (net-setup). Damit könntest du Probleme bekommen, denn ein laufender SSH-Server wird dir nicht viel bringen, wenn kein Netzwerk da ist, um ihn zu erreichen.

Generell wirst du da wahrscheinlich ziemlich viel Herumprobieren müssen. Und dann, wenn es einmal passt, den Stick nie wieder anrühren :).

Valera

Here to stay
Registered: Dec 2005
Location: Mint
Posts: 683
Ich kenne mich mit der SystemRescueCd nicht aus. Daher habe ich eine Frage/Denkanstoß:
Muß es die SystemRescueCd sein? Ich nehme an, es soll für ein bestimmtes System sein? Ein zB Debian Wheezy, Linux Mint, FreeBSD oder wasauchimmer startet Netzwerk/ssh Server usw automatisch. Du könntest dir ein solches System einfach auf einen USB Stick installieren (Ich hab zB ein Debian Wheezy und ein FreeBSD9.2 für meine Server auf Sticks) - da paßt dann auch alles mit Netzwerk,ssh usw. Die Tools müßtest halt installieren.
Ist aber imho weniger Arbeit als es sich bei der SystemRescueCd anhört. :p
Nur eine Idee...

fogerl

Little Overclocker
Registered: Jan 2005
Location: Wien
Posts: 98
Startet das System denn dann auch ohne angestöpselte Tastatur/Maus/Monitor? Hätte mir gedacht, dass das bei einem "normalen" System Probleme macht.

Aber gut, wenns funktioniert soll's mir recht sein. :)

Valera

Here to stay
Registered: Dec 2005
Location: Mint
Posts: 683
Auf meinen "Servern" ist nur das USB Kabel zur USV, Netz- und Netzwerkkabel(n) angesteckt. ;) Administration erfolgt über ssh. Ich denke, das hängt nur vom Mobo (BIOS,UEFI) ab ob es ohne Tastatur startet. Maus und Monitor sind überhaupt egal.
edit: Zum erstmaligen Installieren hab ich Tastatur und Monitor angesteckt. Aber ich denke das geht vom Livesystem auch übers Netzwerk, weiß ich jetzt aber nicht, da es so für mich einfacher war.
Bearbeitet von Valera am 20.01.2014, 19:37

userohnenamen

leider kein name
Avatar
Registered: Feb 2004
Location: -
Posts: 15844
es gibt in so gut wie jedem bios ansonsten die möglichkeit die fehlermeldung das keine tastatur dran ist zu skippen
Kontakt | Unser Forum | Über overclockers.at | Impressum | Datenschutz