Subj : Re: Micro Controller Forum To : SirRonmit From : Partiersp Date : Sat Dec 31 2022 18:37:26 Re: Re: Micro Controller Forum By: SirRonmit to Mike Dippel on Sat Nov 26 2022 13:35:32 I'm not sure what you are using your RPi for, but I'm using mine as a NAS/Web server. I currently can tunnel into the RPi using a BASH script I have on my laptop. This attaches a directory to my home directory that allows for simple file transfer. The script also rsync a directory that I like to have backed up onto RPi. It acts like my own 'clowd' server for my stuff. Here's the script on my laptop: #!/bin/bash skip=1 #set address to you're network's address address="XXX.XXX.XXX.XXX" port=21 while getops :sh option; do case $option in h) echo "usage: pitun [-s]"; exit;; s) skip=0;; ?) echo "Error: option -$OPTARG is not supported"; exit;; esac done if [ $skip -eq 1 ] then rsync -ave "ssh -p$port" ~/Backup/ pi@$address:/home/pi/Backup echo if mkdir ~/pi sshfs pi$address:/home/pi ~/pi -p$port ssh -L 8080:127.0.0.1:80 -L 8888:192.168.1.3:80 pi@$address -p$port fusermount --umount ~/pi rmdir ~/pi Once I use that script on my laptop, I have an open SSH connection to it if I want to run any commands on the pi itself. I also have port forwarding so I can access the pi's web server by entering 127.0.0.1:8080 into my laptop's webrouser. This eliminates opening up additional ports in my router's firewall. On the RPi it's self, I have two identical HDD running in RAID 0 via two identical USB to SATA addapters. This provides data redundancy in case one drive fails (which I have had and this saved my data). As far as websites/data on the Pi, it's mainly my photo gallery. I've got 36k photos I've taken over the years. The Backup directory on my laptop has anything I want to by automatically sync'd to the RPi with is typically some work stuff. Using Termux on my phone/tablets I can run a very similar script and have the same funtionallity on my devices. Mike .