



If you want to SSH to your Kali VM with a password you need to edit the /etc/ssh/sshd_config file and change the line PermitRootLogin prohibit-password by this one PermitRootLogin yes. Do not forget to change them… SSH with password Kali use root/toor as default linux credentials. Vboxmanage startvm "kalivm" -type headless Vboxmanage storageattach "kalivm" -storagectl "IDE Controller" -port 1 -device 0 -type dvddrive -medium /home/olivier/Downloads/ Vboxmanage storageattach "kalivm" -storagectl "IDE Controller" -port 0 -device 0 -type hdd -medium "/home/olivier/VirtualBox VMs/kalivm/kalivm.vdi" Vboxmanage createhd -filename "/home/olivier/VirtualBox VMs/kalivm/kalivm.vdi" -size 20000 Vboxmanage storagectl "kalivm" -name "IDE Controller" -add ide -controller PIIX4 Vboxmanage modifyvm "kalivm" -nic1 bridged -nictype1 82545EM -bridgeadapter1 eno1 Vboxmanage modifyvm "kalivm" -memory 4096 -acpi on -cpus 2 Install Network tools apt-get install inetutils-tools bridge-utils -yĬreate VM via command lines vboxmanage createvm -name "kalivm" -ostype Ubuntu_64 -register sudo add-apt-repository "deb bionic contrib" The command below will add an entry at the end of the file /etc/apt/sources.list. Import the Oracle public key to your system: wget -q -O- | sudo apt-key add -Īdd Oracle VirtualBox PPA. Here are the necessary commands to install Kali on Virtualbox on Ubuntu 18.04.
