How can I ssh to my computer?

All we need is an easy explanation of the problem, so here it is.

I have recently downloaded ubuntu server 20.04 to my desktop and it has no wireless connection. Is there a way to ssh from my laptop to my desktop PC which has ubuntu server in it? Both laptop(win10) and desktop(ubuntuserver20.04) are connected with an ethernet cable.

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

If you have connected both your desktop and laptop with an Ethernet cable and did not set up any specific IP addresses, both machines probably use randomly assigned "autoconfiguration" IP addresses, ie. addresses from the range 169.254.x.x. You need to check on both machines what addresses they have.

On Windows machine, type the following in the CMD window:


You may also check the IP address from Windows GUI, but it is quite a lot of clicking in Windows 10 (it was easier in previous releases), it’s just faster to do it from command line :). You will see the addresses for both interfaces (Ethernet and wireless).

On Linux machine, login on the text console and type:

ifconfig -a

You will see a lo interface (IP address which you should just ignore – that is a "loopback" connection under which the machine is able to access itself – and another interface corresponding to your Ethernet adapter.

If both machines show IP addresses from the range 169.254.x.x, you are ready to connect (assuming the ssh server is running on your desktop – it should be active on Ubuntu Server by default, I guess). Note the IP address of your desktop and use it with a Windows ssh client. Windows 10 does include a ssh client in the OS (at last; with previous releases of Windows, you had to download a third-party client), so it should be enough to just type ssh [email protected] (where user is your username in Ubuntu and 169.254.a.b is the IP address of your Ubuntu machine) in CMD window to connect.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

Leave a Reply