
# this works to ssh to cabinpi3 and then to cabin@kjp.dyndns.org
# rsa key were made on this vm and cbinpi3 so do not need to enter passwords

#ssh -p 3640 pi@10.10.10.251  #works do not need password

# todo share folder(s) pccam with this vm; write rsync command

# this works
#ssh -p 3640 -tt -L 44344:localhost:1111 pi@10.10.10.251 ssh -p 443 cabin@kjp.dyndns.org -L 1111:192.168.0.8:44344 bash <<EOF#
#dir
#rmdir testing
#echo ""
#echo ""
#dir
#exit
#EOF

# this works, need to give s3 cabin's password; get at terminal: cabin@s3:~> 
#ssh -p 3640 -tt -L 44344:localhost:1111 pi@10.10.10.251 ssh -p 443 cabin@kjp.dyndns.org -L 1111:192.168.0.8:44344

#ssh -p 3640 pi@10.10.10.251 # works get terminal at cabinpi3
#rsync -a -e "ssh -p 3640" ./testrsynctos3.sh pi@10.10.10.251:    # this works to copy one file to cabinpi3


rsync -av ./testrsynctos3.sh cabin@localhost





#ssh -p 3640 -tt -L 44344:localhost:1111 pi@10.10.10.251 ssh -p 443 cabin@kjp.dyndns.org -L 1111:192.168.0.8:44344 # works - ssh to cabin@s3
#ssh -p 3640 -tt -L 44344:localhost:1111 pi@10.10.10.251 ssh -p 443 cabin@kjp.dyndns.org -L 1111:192.168.0.8:443   # works - ssh to cabin@s3
#ssh -p 3640 -tt -L 44344:localhost:1111 pi@10.10.10.251 ssh -p 443 cabin@kjp.dyndns.org -L 1111:192.168.0.8:443  # new window ssh -p 44344 localhost connects asks for #password cabin allinatos3 cabinpi3 passwords do not work; ssh -p 1111 localhost does not work
#ssh -p 3640 -tt -L 44344:localhost:1111 pi@10.10.10.251 ssh -p 443 cabin@kjp.dyndns.org  # works get ssh to cabin@s3


  #this works to get ssh to cabin@s3 and Blueiris_clips directory



# testing
#rsync -a -e "ssh -p 3640" ./testrsynctos3.sh 44344:pi@10.10.10.251:443 allinatos3@kjp.dyndns.org:  #does not work
#ssh -p 3640 -tt -L 44344:localhost:1111 pi@10.10.10.251 ssh -p 443 cabin@kjp.dyndns.org -L 1111:192.168.0.8:44344 # works get terminal cabin@s3
#ssh -p 3640 -tt -L 44344:localhost:1111 pi@10.10.10.251 ssh -p 443 cabin@kjp.dyndns.org -L 1111:192.168.0.8:44344 'mkdir test20210826' #don't know where made the directory
#bash -c "ssh -p 3640 -tt -L 44344:localhost:1111 pi@10.10.10.251 ssh -p 443 cabin@kjp.dyndns.org -L 1111:192.168.0.8:44344 'dir && dir'"
#'cd Blueiris_clips'  #this works to get ssh to cabin@s3 and Blueiris_clips directory

#ssh -p 3640 pi@10.10.10.251 # works get terminal at cabinpi3
#sync -a -e "ssh -p 3640" ./testrsynctos3.sh -tt -L 44344:localhost:1111 pi@10.10.10.251 ssh -p 443 cabin@kjp.dyndns.org -L 1111:192.168.0.8:44344:    

#ssh -p 3640 pi@10.10.10.251 -L 44344:allinatos3@kjp.dyndns.org:443 -L 44344:192.168.0.8:80  # DOES NOT WORK
#ssh -p 3640 pi@10.10.10.251 -L 44344:allinatos3@kjp.dyndns.org:80   # does not work



#rsync -a -e "ssh -p 44344" ./testrsynctos3 ssh -p 3640 pi@10.10.10.251 ssh -p 443 cabin@kjp.dyndns.org:

#rsync -a -e 1111  "ssh -p 3640 -tt -L 44344:localhost:1111 pi@10.10.10.251 ssh -p 443 cabin@kjp.dyndns.org -L 1111:192.168.0.8:44344" ./testrsynctos3.sh cabin@localhost

