URL: https://www.overclockers.at/linux/systemrescuecd-mit-ssh-server-starten_237577/page_1 - zur Vollversion wechseln!
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:
ZitatSSH 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.
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 }

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
.
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. 
Nur eine Idee...
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. 
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.
es gibt in so gut wie jedem bios ansonsten die möglichkeit die fehlermeldung das keine tastatur dran ist zu skippen
overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025