Konfiguration von Kali: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| (4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 15: | Zeile 15: | ||
*sudo visudo | *sudo visudo | ||
%sudo ALL=(ALL:ALL) NOPASSWD:ALL | %sudo ALL=(ALL:ALL) NOPASSWD:ALL | ||
| + | =vim anpassen= | ||
| + | So könnt ihr aus dem vi heraus kopieren. | ||
| + | *echo "set mouse=" >> ~root/.vimrc | ||
| + | *echo "set mouse=" >> ~kit/.vimrc | ||
| + | |||
=ssh= | =ssh= | ||
;installieren | ;installieren | ||
| Zeile 22: | Zeile 27: | ||
Synchronizing state of ssh.service with SysV service script with /lib/systemd/systemd-sysv-install. | Synchronizing state of ssh.service with SysV service script with /lib/systemd/systemd-sysv-install. | ||
Executing: /lib/systemd/systemd-sysv-install enable ssh | Executing: /lib/systemd/systemd-sysv-install enable ssh | ||
| + | |||
| + | =SSH Keys hinterlegen vom Host System= | ||
| + | ;Der Pubkey von User kit sollen auf kali zu in die authorized_keys von xinux und root | ||
| + | ;hostX | ||
| + | *cat ~kit/.ssh/id_ed25519.pub | ||
| + | ssh-ed25519 AAAAC3NzaC1lZDI1NTEyyyyyyyyyyyyyyyyyyyyyyyyywGvRzejGo6o5wKqhcczf2oYF/8 kit@host200 | ||
| + | ;kali | ||
| + | ;Dieser Key muss hier rein | ||
| + | ~kali/.ssh/authorized_keys | ||
| + | ~root/.ssh/authorized_keys | ||
Aktuelle Version vom 7. August 2024, 12:59 Uhr
Voreingestelltes Root-Passwort ändern
- passwd
Git installieren
- apt install git
Netzwerk anpassen mit dem Netzwerk Manager
Automatische Updates abschalten
- Nur für die Schulung, sonst ist es selbstverständlich sinnvoll.
- nano /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "0"; APT::Periodic::Unattended-Upgrade "1";
sudo passwortlos
- Zeile entsprechend anpassen
- sudo visudo
%sudo ALL=(ALL:ALL) NOPASSWD:ALL
vim anpassen
So könnt ihr aus dem vi heraus kopieren.
- echo "set mouse=" >> ~root/.vimrc
- echo "set mouse=" >> ~kit/.vimrc
ssh
- installieren
- apt install -y ssh
- aktivieren
- systemctl enable ssh --now
Synchronizing state of ssh.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable ssh
SSH Keys hinterlegen vom Host System
- Der Pubkey von User kit sollen auf kali zu in die authorized_keys von xinux und root
- hostX
- cat ~kit/.ssh/id_ed25519.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTEyyyyyyyyyyyyyyyyyyyyyyyyywGvRzejGo6o5wKqhcczf2oYF/8 kit@host200
- kali
- Dieser Key muss hier rein
~kali/.ssh/authorized_keys ~root/.ssh/authorized_keys