Connecting To The Raspberry PI via SSH

To remotely access the Raspberry PI through your personal computer, we will access the shell of the raspberry pi through SSH.

To setup ssh on your raspberry pi, look here.

Assuming that you have already setup a name and a password on your rasberry pi, first look up your local ip address using the following command in the terminal.

ifconfig

Make sure your raspberry pi and your computer are connected to the same network.

From your personal computer, open your terminal and enter this command to connect via ssh.

ssh -X yourusername@yourip

for instance

ssh -X aupp@10.30.0.207

input your password and you'll be connected.

Programming Environment (optional)

We'll use jupyter on the Raspberry PI. We host the server on its ip and access it on your personal pc.

Installing Jupyter

pip install jupyter

Hosting The Server On Your IP

python3 -m jupyter lab . --ip <your_LAN_ip> --port 8888

For example, if your ip is 10.30.0.207 and you want to host it on port 8888

python3 -m jupyter lab . --ip 10.30.0.207 --port 8888

you'll be given with a link like this:

http://10.30.0.207:8888/tree?token=a0cd659ac70086a9beb5cd3ca4d323ab733ec17c9f031805

Paste it into your personal computer and you'll have access to the files on the rapsberry pi remotely.