Jump to content

Kali SSH problems


Recommended Posts


I've just bought a LAN Turtle and was itching to start playing with it but I seem to have run into a stumbling block or two. I have an old laptop with Kali v1 on it and a newer laptop with Kali v2.

When I try to ssh into the localhost on Kali v2 I get asked for a password which I enter but I keep getting permission denied. This also happens when I try to ssh into it from my LAN Turtle.

So I thought I would try my old Kali v1 which I thought ssh worked on. However when j do the same on that I just keep getting connect refused even though when I run "service ssh status" it says it's running.

Can someone offer any advice, it's starting to drive me up the wall.


Link to comment
Share on other sites

Kali 2.0 requires keys, and disables root login without them - https://www.offensive-security.com/kali-linux/top-10-post-install-tips/

This makes SSH more secure and can't be brute forced or logged in with the default root/toor that ships with the distro.

Link to comment
Share on other sites

I tried allow root login and that didn't work and I tried to add another user and login to them and that didn't work either. Do I you have to specify which users can be accessed through ssh?

Tells you how to enable it for root users, which is disabled in the settings by default. You could add your keys, or change the settings - https://www.offensive-security.com/kali-linux/top-10-post-install-tips/ :


Add Your SSH Public Key to Kali 2.0

Kali Linux 2.0 takes on the Debian SSH configuration option, the default since Jessie, which disallows root logins without a key.

root@kali:~# grep Root /etc/ssh/sshd_config

PermitRootLogin without-password

The less preferred alternative is to change the PermitRootLogin parameter to “yes” and restart the SSH server, which will allow remote password root logins. For safer remote root SSH access, add your public key to the /root/.ssh/authorized_keys file.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...