If you use a Kali Linux VM, you can mount your SD card in it and then edit /etc/ssh/sshd_config. That's what I did to enable running headless and connecting via ssh.