I have posted the same answer in another question. However, it answers exactly the question on this page. Here the full text and solution:
Another wonderful solution (unfortunately not considered in the beginning) consists of creating an ethernet connection so that the internet access through the wifi is also shared with the embedded system. The solution is very easy to be implemented (and further details can be found surfing on the web, here for an example):
- open Edit connection...
- create (or open the existing) Wire connection
- in the IPv4 Settings tab, select Method: Shared to other computers. This is the main difference with the other solutions for this answer:

Nothing more should be done in the "server part" (i.e., the workstation). You will see that the computer creates its own network. Click on Connection Information to see it or, from the command line, type ifconfig
and look the take note of the address, sub-mask, and the other parameters for the ethernet connection (for example under eth0
in my case).
The embedded system (for example a raspberry PI connected with the eth cable) should use the just-create network, using the parameter that you have just observed.
CONCLUSION: that way, you will be able to access the system (using ssh
or what you want) and, at the same time, have free access to the web (in case you need to download new packets or programs).