I want to remotely control my RaspberryPi from kilometers away and independent from mobile service, so i had LoRa as a idea. How would i be able to get a shell to my RaspberryPi via LoRa?
There are several ways to remotely control a Raspberry Pi using LoRa, but one common method is to use a LoRa module connected to the Raspberry Pi's UART (serial) pins. You can then use a terminal program on your computer to communicate with the Raspberry Pi over the LoRa link.

To get a shell on the Raspberry Pi, you can use a terminal program such as PuTTY or screen to establish a serial connection to the Raspberry Pi at the appropriate baud rate (usually 115200). Once connected, you can use the login credentials for your Raspberry Pi to access the command line interface.

Alternatively, you can also use a LoRa gateway to send commands to the raspberry pi and receive the response. The gateway can be connected to the internet and you can use a remote terminal or a ssh client to connect to the gateway and then send commands to the raspberry pi via LoRa.

Please note that you'll need to set up the LoRa module and configure the Raspberry Pi's UART for serial communication, as well as configure the LoRa network settings such as frequency and network key.