Skip to content

danielrw7/sshfs-open

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
tmp
 
 
 
 
 
 
 
 

sshfs-open

A simple helper script to mount and unmount remote directories

Setup:

  1. Install sshfs.
  2. Run git clone https://github.com/danielrw7/sshfs-open.git
  3. If you want to add sshfs-open to your PATH, add this to your bashrc:
export PATH=$PATH:/path/to/sshfs-open

Usage:

$ sshfs-open [host:directory] [command]

Example:

$ ./sshfs-open dev@server.com:/some/dir 
Mounted ./tmp/dev@server.com:,some,dir
Press [CTRL+C] to exit

To run a command on the mounted directory, pass the commands and arguments after the remote directory:

# Open the mounted directory with atom
$ ./sshfs-open dev@server.com:/some/dir atom 
Mounted ./tmp/dev@server.com:,some,dir
Press [CTRL+C] to exit

Once you press CTRL+C, the mounted directory will be unmounted, and any child processes will be killed (if you passed a command).

About

A simple helper script to mount and unmount remote directories with sshfs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages