p The mandatory parameters are the target host name and local mount point. The target host parameter can optionally contain a username whose credentials will be used by the remote sshd, and a relative or absolute path for the remote mountpoint's root. If no user is given, the credentials of the user issuing the mount command are used. If no path is given, the user's home directory on the remote machine will be used.
p The following command line options are available:
p l -tag -width xxx t Fl e Makes the mounted file system nfs exportable. If this option is used, it is very important to understand that .Nm can not provide complete support for nfs due to the limitations in the backend. Files are valid only for the time that .Nm is running and in the event of e.g. a server crash, all client retries to access files will fail. t Fl o Ar [no]option This flag can be used to give standard mount options and options to puffs. The most notable of these is .Fl o Ar nocache , which disables the name cache and page cache for the file system. It slows operations down, but will behave better when multiple entities are accessing the same directory tree via various routes. t Fl O Ar sshopt=value Pass an option to .Xr ssh 1 , for example .Fl O Ar Port=22 . For a list of valid options, see .Xr ssh_config 5 . t Fl s This flag can be used to make the program stay on top. The default is to detach from the terminal and run in the background. .El .Sh EXAMPLES The following example illustrates how to mount the directory .Em /usr on server .Em bigiron as user .Em abc on local directory .Em /mnt with ssh transport compression enabled: d -literal -offset indent mount_psshfs -O Compression=yes abc@bigiron:/usr /mnt .Ed
p It is possible to use .Xr fstab 5 for psshfs mounts, with SSH public key authentication:
p .Dl "abc@bigiron:/usr /mnt psshfs rw,noauto,-O=BatchMode=yes,-O=IdentityFile=/root/.ssh/id_rsa 0 0" .Sh SEE ALSO .Xr fstab 5 , .Xr sftp 1 , .Xr puffs 3 , .Xr puffs 4 , .Xr mount 8 , .Xr ssh_config 5 , .Xr sshd 8 .Sh HISTORY The .Nm utility first appeared in .Nx 5.0 . .Sh CAVEATS Permissions are not handled. Do not expect the file system to behave except for a single user.