Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

120 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash script for reading arguments for sshfs from an ssh-esque config file

it makes it possible to run sshmount hostname to mount a remote directory on a local directory using the sshfs program

  • the script depends on both sshfs and fusermount being installed on the system
  • sshmount -u host will unmount the Localdirectory using fusermount
  • sshmount host will mount the remote directory from a host on a local directory
  • the host, local diretory and remote directory are specified in the fsconfig file
  • fsconfig in this repo is contains examples for writing a the needed config file for this script
  • this can be used in combination with a ssh config file
  • pass through sshfs flags such as -F, -f, -s, -C, -p, -o, -d, -1, -V and -h to sshfs
  • pass through ssh flags with -S example sshmount -S "-o ClearAllForwardings=no -L 3306:127.0.0.1:3306"
  • allow ssh tunneling by with -w example: sshmount -w host
  • allow ssh tunneling by specifying "PortForwarding yes" in fsconfig
  • allow localforward, remoteforward, dynamicforward, and forwardagent rules to be added in fsconfig
  • allow use of forward rules defined in ~/.ssh/config for a specific host
  • list mounted directories with sshmount -l
  • remount a mounted directory with sshmount -r host

Install

  • Download the files below

download

  • open a terminal
  • run unzip Downloads/sshmount.zip -d sshmount
  • run sshmount/sshmount setup
  • ???
  • profit

About

bash script for reading config for mounting Remote directories locally over ssh

Resources

Stars

Watchers

Forks

Releases

Sponsor this project

Contributors

Languages