1

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

SteffenNielsen
  • 477
  • 4
  • 15

1 Answers1

3

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.

Tero Kilkanen
  • 36,796
  • 3
  • 41
  • 63
  • I don't think this will have an effect on the root user of the client side? – SteffenNielsen Jul 27 '17 at 09: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 09:49