offensive-security / kali-arm-build-scripts

Kali Linux ARM build scripts
874 stars 374 forks source link

Default Password toor for root Doesn't work on Fresh Image for Odroid C2? #132

Closed jsl303 closed 5 years ago

jsl303 commented 6 years ago

I downloaded and flashed kali-linux-2018.2-odroidc2.img. I booted up, and tried to log into ssh with username root and password toor. It says access denied. What's the default password?

steev commented 6 years ago

toor is the correct password.

If you have a second linux machine, can you mount the sdcard in it, and verify that the /etc/ssh/sshd_config file has "PermitRootLogin yes" in it and is uncommented?

jsl303 commented 6 years ago

Unfortunately I don't have another Linux machine. :(

steev commented 6 years ago

Plug a monitor and keyboard in and check?

jsl303 commented 6 years ago

I'm visually impaired, , so I have to ssh from another computer with a screen reader.

steev commented 6 years ago

Unfortunately, there isn't a quick fix then. The image is missing that line in the config so you can't ssh in.

Is there a friend or someone you could walk through editing that file? All they need to do is find the line that says

PermitRootLogin prohibit-password

and change it to

PermitRootLogin yes

jsl303 commented 6 years ago

Thanks for the explanation. Could we get this fixed in the next release though?

threeway commented 6 years ago

It already is :) if you build an image with the script as it is now, you’ll get the fix.

Just a warning that the first boot also resizes the file system and reboots to do so. It will also rebuild the ssh host keys.

threeway commented 6 years ago

Also, if you build it yourself, you’ll want to run build-deps.sh first, to pull in everything that is needed. I haven’t updated the readme file to explain the changes just yet. Once I have all the images correctly building, I’ll be doing so.

jsl303 commented 6 years ago

Awesome, thank you!

jsl303 commented 6 years ago

When would the next image with the changes get released?

steev commented 6 years ago

I don't have an exact date unfortunately. If you have a kali VM, you can clone the repository, run the build-deps script and then the odroid-c2 script if you cannot wait.

steev commented 5 years ago

2018.4 is out, please give it a test, and re-open if you still have this issue!