So you want to access the Internet from the RPi, and aim to use an existing computer with an Internet connection as a bridge?
Nobody will be very happy to make suggestions you have already tried, if you have indeed tried everything. Best you describe what you have already tried (which won't be "everything"), and then we'll tell you what else you can try.
Okay, so where do you propose to get a second Ethernet port from? If you had a second Ethernet port, you would need to configure the computer to bridge the network on Port 1 to be available on Port 2.
It depends on how you are doing the networking. If you have a router and both machines are connecting through it, then you should just be able to SSH to the IP address of the RPi. If you are plugging the Ethernet ports directly together, then you'll need to have an interface configured for a static IP address with DHCP running and configured to dole out addresses on that interface. Which do you have, a direct cable with nothing between the machine or both plugged into a shared router?saleiti wrote: ↑Fri Jul 13, 2018 9:53 amI mean if I have connected raspberry to the computer via ethernet cable and then I'm writing to Linux terminal: ssh [email protected](IP of the rasp), then I should be able to access my raspberry through my computer, no?
But If I write this to terminal it gives me: port 22: no route to host.
So, just to be clear the topology looks like this?
Code: Select all
rpi ----- laptop ----- router ----- Internet
How many Ethernet ports are there on the laptop computer?
The task of connecting a Pi directly to a PC using a single Ethernet cable was recently discussed in this thread
stevend wrote: ↑Fri Jul 13, 2018 9:14 pmThere's a post which suggests the OP wishes to use SSH into the Pi.
If so, it is necessary to enable SSH on the Pi.
Two ways do do this:
1. Via the user interface - temporarily connect a screen, keyboard and mouse.
2. create a file called 'ssh' (it can be empty) in the boot directory of the Pi's SD card.
If this is what you want to do, there should be more documentation on this site.
I also believe it is a language problem, but the very first post is a bit suspicious...
Unless he is majoring in time travel.
So which is it?