I am new to linux and I am trying to establish a SSH connection with my friend's PC in the same LAN, but I am getting "ssh: connect to host 192.168.71.70 port 22: Connection refused". Both ways are getting connection refused. Can anyone please help me resolve this problem.
I normally when in a LAN or not in a LAN I do this:
In a normal scenario this should be enough. Let me know if it works.
When you try and connect use the -vvv switch to show debug information.
hope this helps along with the other answers