I have a Raspberry Pi 4 running Kali Linux. I succeeded to ssh to the Pi via Wifi, but I failed when trying to ssh via Ethernet. Here is what I did (trying to ssh via Ethernet):

  • connect Ethernet cable from my laptop to the Pi, and power it on
  • after waiting some time for Pi to boot, I go to Control Panel>Network and Sharing Center. I click on the ethernet connection properties and got "autoconfiguration IPv4"
  • open Putty, enter, and start ssh
  • received "Network error: Connection refused."

By the way, this is what I get about eth0 when running "ifconfig" on the Pi:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::dea6:32ff:fe78:ed88  prefixlen 64  scopeid 0x20<link>
        ether dc:a6:32:78:ed:88  txqueuelen 1000  (Ethernet)
        RX packets 237  bytes 36886 (36.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 72  bytes 19080 (18.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

So what do I need to do to ssh via Ethernet? When I was using Raspbian, I could do that pretty straightforward, but now I want to try something new as Kali Linux. I am by no means an expert though, so please bear with me if I missed something stupid.

Thank you in advance.

  • 1
    This is a problem with your Windows setup - connect the Pi to your router and it should work.
    – Milliways
    Apr 24, 2020 at 11:36
  • Can you please specify that? How can it help?
    – duk3
    Apr 24, 2020 at 12:18

1 Answer 1


Okay I have solved it by myself. For future people who come here: I ssh by the IPv6 instead of IPv4 as usual, and everything is good! (Still don't know why my ifconfig doesn't return an IPv4, though)

  • Please accept your own answer with a click on the tick on its left side. Only this will finish the question and it will not pop up again year for year.
    – Ingo
    Apr 26, 2020 at 17:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.