diff --git a/main.go b/main.go index f260e09..45b07b0 100644 --- a/main.go +++ b/main.go @@ -75,7 +75,20 @@ func verify_mount_dir(hostname string)(mount string) { } func mount_sshfs(hostname string, user string, ifile string, port string, mount string) { - cmd := exec.Command("sshfs", "-p", port, "-o", "IdentityFile="+ifile+",idmap=user,dir_cache=no", user+"@"+hostname+":/", mount) + cmd := exec.Command("sshfs", "-p", port, + "-o", "IdentityFile="+ifile, + "-o", "idmap=user", + "-o", "cache=yes", + "-o", "kernel_cache", + "-o", "attr_timeout=60", + "-o", "entry_timeout=60", + "-o", "negative_timeout=20", + "-o", "Ciphers=aes128-gcm@openssh.com", + "-o", "Compression=no", + "-o", "reconnect", + "-o", "ServerAliveInterval=15", + "-o", "ServerAliveCountMax=3", + user+"@"+hostname+":/", mount) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr err := cmd.Run()