Setting UP A PI!
Install Raspberry Pi Imager App
- Enable SSH(Secure Shell) for remote connection
Scan Raspberry Pi’s IP address
Remote connect to PI
1 | ssh account@ip-address |
1 | ssh pigtt@192.168.2.220 |
Install remote development extension for VSCode
Edit ssh config for convenience
1 | /Users/YourUserName/.ssh/config |
1 | Host pi5 |
1 | ssh pi5 |
Enable VNC
- Enter configuration tool via
sudo raspi-config
- Select
3 Interface Options
- Enable
VNC server
Install VNC viewer on mac
1 | brew install vnc-viewer |
Add public key to Raspberry Pi
In mac:
1 | cat ~/.ssh/id_rsa.pub |
In Raspberry Pi:
Add public key to ~/.ssh/authorized_keys
.
Fix REMOTE HOST IDENTIFICATION warning
After reinstalling the os for Raspberry Pi, we got this warning when ssh.
1 | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
Remove the lines that contain the raspberry pi’s ip address.
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment