PDA

View Full Version : Kali Linux 2.0 SSH not accepting password



DrDinosaur
2015-08-17, 02:48
I installed Kali Linux 2.0 on my Raspberry Pi 2. It is not accepting the SSH password of 'toor.' This might be a result of the SSH configuration change. I do not have a USB keyboard, only a Bluetooth one. How do I get this working properly? Thanks.

g0tmi1k
2015-08-17, 08:57
Make sure your SSH key is added to ~/.ssh/authorized_keys

In debian 8/kali 2 - root login by default is only allowed via SSH keys - not passwords.

DrDinosaur
2015-08-17, 09:05
Okay, so how can I do that without SSH access or a USB keyboard? I thought about mounting the partition, but I haven't had any luck with Windows (there's no native Ext4 support and an outside program won't work) or getting the device to be found in Kali Linux on a VM. Perhaps the only way is to boot Linux off USB and see if it will find the device then.

g0tmi1k
2015-08-17, 09:21
If you cannot edit it (headless install), I believe kali 2.0.1 fixes this.
Check to see if the ARM image has been generated again for your platform and re-install.

Else... manually mount the file system on another machine and edit the system that way.

exxy
2015-08-17, 12:29
root on kali 2 is not permitted to login via ssh via default.

edit the following:

#nano /etc/ssh/sshd_config

find the line under #Authentication which says PermitRootLogin without-password and make it #PermitRootLogin without-password
save and exit and restart ssh

nixilus
2016-02-26, 20:31
I connected by UART and add new user
Rx-Tx, Tx-Rx, GND-GND
You can user any USB->UART(cp2102, Arduino and other)
my photo and post (http://www.2pi2.ru/2016/02/raspberry-pi-uart-ssh.html) in Russian, but with pictures

HoneyFairy
2016-03-12, 11:44
it should be
PermitRootLogin yes