Is it possible to disallow remote servers from writing to a sshfs mounted folder, either on server or client side?


Just change the permissions of the folder so that there are no permissions for the SSH user used when mounting the directory to write to that directory.

  • I don't think this will have an effect on the root user of the client side? – SteffenNielsen Jul 27 '17 at 9:42
  • 2
    The SSH connection always uses the rights of the user on the server side of the connection. It does not matter which user is used on the client side to connect to the other end. – Tero Kilkanen Jul 27 '17 at 9:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.