Skip to content

wd5gnr/sshmount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Call like ssh, e.g.,

sshmount myremotehost # add any ssh options you like
  1. It checks for a directory under ~/remote that matches the remote host name (e.g., lab). If it fails to find it, it prints an error message and continues to execute ssh.
  2. If the directory exists, the script examines the list of mounted file systems to see if it is already mounted. If it is, the script just continues with ssh.
  3. If the directory is not mounted, the script calls sshfs and then proceeds with ssh.

If you link the script to sshunmount, it will unmount the mount from #3 and not log in.

About

Mount remote directory locally as logging in

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages