Home | History | Annotate | Line # | Download | only in mount_psshfs
mount_psshfs.8 revision 1.4
 $NetBSD: mount_psshfs.8,v 1.4 2007/04/12 21:04:39 pooka Exp $

Copyright (c) 2007 Antti Kantee. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

.Dd April 12, 2007 .Dt MOUNT_PSSHFS 8 .Os .Sh NAME .Nm mount_psshfs .Nd sshfs implementation for puffs .Sh SYNOPSIS .Nm .Op Ar options .Ar user@host[:path] .Ar mount_point .Sh DESCRIPTION The .Nm utility can be used to mount a file system using the ssh sftp subprotocol, making a remote directory hierarchy appear in the local directory tree. This functionality is commonly known as .Em sshfs .

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 xx 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 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 SEE ALSO .Xr sftp 1 , .Xr puffs 3 , .Xr puffs 4 , .Xr mount 8 , .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.

p The implementation does not currently behave if the file system is being accessed from other locations besides through the mounting host. Mount the file system without caching if the usage pattern is going to be such.