Installation process:
On the Pi
- Move file
homeSecurity.cnf
(attached) in directory (you will need to create):/home/pi/.vars
- Move
sshscript.sh
to your Pi's Downloads folder. ChangeUNIQUE_NAME
to something unique. If someone else picks this later, you will have to change your UNIQUE_NAME again or wait till they log off. - Edit the rc.local (
/etc/rc.local
) file with sudo to include the if...fi in lines 20-23. You do not need the commented out line, but make sure it is pasted before the exit 0 on line 25.
On your computer
MacOSX: Untested, but theoretically should work.
- Copy sshIntoPi.sh somewhere locally.
- Change the UNIQUE_NAME to what was set on the Pi.
- Run when Pi is online.
Windows:
- Setup Windows Subsystem for Linux or alternative Linux shell.
- Copy sshIntoPi.sh somewhere locally.
- Change the UNIQUE_NAME to what was set on the Pi.
- Run when Pi is online.