- On computer A route traffic going to 172.17.0.0/16 over 192.168.1.73
ip route add 172.17.0.0/16 via 192.168.1.73
- On computer B
#in this example i am trying to sync my current directory to the /var/www on the remote | |
#note: to avoid typing password at each time i suggest enabling public key authentification by ssh-copy-id root@host | |
#i use this setup when working in embedded devices it makes life easier | |
while true; do | |
inotifywait -r . -e modify,create,delete | |
rsync -avzz --exclude 'sync.sh' --delete --update . [email protected]:/var/www/ | |
done |
ip route add 172.17.0.0/16 via 192.168.1.73
{"lastUpload":"2021-06-22T11:36:20.695Z","extensionVersion":"v3.4.3"} |