Konfiguration von Kali: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→ssh) |
|||
| Zeile 17: | Zeile 17: | ||
=vim anpassen= | =vim anpassen= | ||
So könnt ihr aus dem vi heraus kopieren. | So könnt ihr aus dem vi heraus kopieren. | ||
| − | *echo "set mouse=" >> / | + | *echo "set mouse=" >> ~root/.vimrc |
| + | *echo "set mouse=" >> ~xinux/.vimrc | ||
=ssh= | =ssh= | ||
Version vom 26. Februar 2023, 07:28 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=" >> ~xinux/.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