Konfiguration von Kali: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
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=" >> /etc/vim/vimrc
 +
 
=ssh=
 
=ssh=
 
;installieren
 
;installieren
Zeile 22: Zeile 26:
 
  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=
 
=SSH Keys hinterlegen vom Host System=
 
;Der Pubkey von User kit sollen auf kali zu in die authorized_keys von xinux und root  
 
;Der Pubkey von User kit sollen auf kali zu in die authorized_keys von xinux und root  

Version vom 26. Februar 2023, 07:23 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=" >> /etc/vim/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