Python scripts I use to manage my ssh connections, drive mounts, and other bash related things.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
491 B

  1. #backup commands
  2. rsync -xavHl --delete /run/media/jeff/Stuff/ /run/media/jeff/Backup/Sync/
  3. #sets bash profile for user
  4. chsh -s /bin/bash username
  5. #terminates screen
  6. screen -X -S [session # you want to kill] quit
  7. #ssh socks proxy
  8. ssh -D 8123 -f -C -q -N sammy@example.com
  9. #!/bin/sh
  10. echo starting to mount
  11. sshfs -o allow_other jeff@192.168.1.2:/mnt/jeff/jeffery/ /home/jeff/media
  12. sshfs -o allow_other public@192.168.1.2:/mnt/jeff/public/ /home/jeff/publicDrive
  13. echo mount successful