SSH Setup

Install the SSH daemon. This must be done in a Terminal window on the Pi.

sudo apt update && sudo apt install ssh

sudo systemctl start ssh && sudo systemctl enable ssh

Next, you will need to find your IParrow-up-right. Avoid using the dynamic pi.local address as this uses mDNS which can cause unexpected behavior in other applications.

circle-info

Make sure the Pi is connected to your router to get the correct IP address.

Verify you can ping the device at its IP address from your windows machine:

  1. Add the IP and host name to /etc/hostsarrow-up-right or C:\windows\system32\drivers\etc\hostsarrow-up-right file and ping the host name

$ ping pi5-tutorial
PING pi5-tutorial (100.64.155.31) 56(84) bytes of data.
64 bytes from pi5-tutorial (100.64.155.31): icmp_seq=1 ttl=64 time=60.4 ms
64 bytes from pi5-tutorial (100.64.155.31): icmp_seq=2 ttl=64 time=6.26 ms
^C
--- pi5-tutorial ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 6.255/33.340/60.426/27.085 ms

OR

  1. Type out the IP address each time

$ ping 100.64.155.31
PING 100.64.155.31 (100.64.155.31) 56(84) bytes of data.
64 bytes from 100.64.155.31: icmp_seq=1 ttl=64 time=81.8 ms
^C
--- 100.64.155.31 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 81.796/81.796/81.796/0.000 ms

I will use pi5-tutorial as the hostname and pi as the user for the rest of the tutorial.

Verify you can SSH into the Pi from your windows machine with the command ssh user@hostname

Proceed to step #4 of Setup steps

Last updated