View Issue Details

IDProjectCategoryView StatusLast Update
0007524Kali LinuxKali Package Bugpublic2022-08-15 10:43
Reporternaitikjoshi24 Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionopen 
Product Version2021.4 
Summary0007524: SSHD not working
Description

sshd is broken, it seems to me that the latest sshd package itself is broken and there's no problem with the system itself.
first thing is that you have to execute sshd from its absolute path (it is a feature so no problems with that) but when you execute sshd with absolute path [/usr/sbin/sshd]
when executed with absolute path the following error is presented "sshd: no hostkeys available -- exiting."
so the next thing i did was generate all keys for ssh using the command {ssh-keygen -A} and it did generate all the keys (i checked the concerning directories and the keys were there)
i ran {/usr/sbin/sshd} again but i got the same error "sshd: no hostkeys available -- exiting."
so now i just tried to directly start sshd with "/etc/init.d/ssh start" and it was working when i checked its status
so i tried to connect to my machine from another device using ssh and it did not connect with the right password.... after digging around i found out that setting permitrootlogin to yes was a probable workaround to this but that did not work either
after that i tried the public key method which didn't work either.

after that i stopped ssh and started it with "sudo service ssh start" and checking the status showed that it was working
i tried to connect again but showed that password is wrong.. and the publickey method didn't work either

i so purged ssh and openssh-server and all the files related to it.

i installed an older version of ssh from a debian repo before it required execution with absolute path, it successfully generated the config files and i was able to do everything with ssh and sshd

Steps To Reproduce

a fresh installation of kali linux (any version)
executing sshd and then executing with absolute path

Activities

g0tmi1k

g0tmi1k

2022-08-15 10:43

administrator   ~0016564

This report has been filed against an old version of Kali. We will be closing this ticket due to inactivity.

Please could you see if you are able to replicate this issue with the latest version of Kali Linux (https://www.kali.org/get-kali/)?

If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing, and also give information about your setup?
For more information, please read: https://www.kali.org/docs/community/submitting-issues-kali-bug-tracker/

Issue History

Date Modified Username Field Change
2022-01-05 08:03 naitikjoshi24 New Issue
2022-08-15 10:43 g0tmi1k Note Added: 0016564
2022-08-15 10:43 g0tmi1k Status new => closed