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.
|
#backup commands
|
|
rsync -xavHl --delete /run/media/jeff/Stuff/ /run/media/jeff/Backup/Sync/
|
|
|
|
#sets bash profile for user
|
|
chsh -s /bin/bash username
|
|
|
|
#terminates screen
|
|
screen -X -S [session # you want to kill] quit
|
|
|
|
|
|
#ssh socks proxy
|
|
ssh -D 8123 -f -C -q -N sammy@example.com
|
|
|
|
#!/bin/sh
|
|
|
|
echo starting to mount
|
|
|
|
sshfs -o allow_other jeff@192.168.1.2:/mnt/jeff/jeffery/ /home/jeff/media
|
|
|
|
sshfs -o allow_other public@192.168.1.2:/mnt/jeff/public/ /home/jeff/publicDrive
|
|
|
|
echo mount successful
|