Ssh No route to host

I don't see SSH port on your netstat result.

Desktop IP: 192.168.0.12

Laptop IP: 192.168.0.10

  1. Need to make sure desktop can ping laptop

    ping 192.168.0.10
    
  2. If ping succeeds, then telnet to ensure SSH port is available and allowable.  (Default SSH port is 22; I don't know whether you changed it on your system.)

    telnet 192.168.0.10 22
    

Telnet OK --> you can run scp command.

Telnet Not OK --> recheck the SSH service running.

How to check SSH service running?

  • check systemd
  • check iptables (or ufw) allowing SSH port.
  • netstat -tapln | grep 22

Check whether sshd service is running or not. systemctl status sshd