automatically recognize .ssh/config entries to shrink PRESSH-list; add better support for predefined hosts; remove unnecessary directories on unmount

This commit is contained in:
2015-04-02 13:20:36 +03:00
parent 18bbe7abd2
commit b89ae2d245
2 changed files with 53 additions and 16 deletions

View File

@@ -2,10 +2,13 @@
LOCALMOUNTDIR=/home/user/remote
## mnt-sftp.sh
# Preconfigured HOSTs in ~/.ssh/config can be used
PRESSH[0]=server1
PRESSH[1]=user@server2.tld
PRESSH[2]=root@12.34.56.78
# Please insert predefined hosts in your SSH Config-file (default ~/.ssh/config). Please use keyfiles for passwordless authentication.
SSHCONFIG=$HOME/.ssh/config
# If you don't want to use your .ssh/config file or need to define the passwords manually, you can add predefined entries here.
# Format: user;;host;;port;;pass;;path
#PRESSH[0]='user1;;domain1.org;;22;;secretpassword1;;/'
#PRESSH[1]='user2;;domain2.org;;23;;secretpassword2;;/home/user2/'
## mnt-share.sh