[ee000c3d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[aaf0f3f] | 7 | <!ENTITY sshfs-download-http
|
---|
[0a137358] | 8 | "https://github.com/libfuse/sshfs/releases/download/sshfs-&sshfs-version;/sshfs-&sshfs-version;.tar.xz">
|
---|
[aaf0f3f] | 9 | <!ENTITY sshfs-download-ftp " ">
|
---|
[1855ac33] | 10 | <!ENTITY sshfs-md5sum "cae9508b97c938727e354448b40693cc">
|
---|
[d3ea9e8] | 11 | <!ENTITY sshfs-size "48 KB">
|
---|
[a15e2f8] | 12 | <!ENTITY sshfs-buildsize "1.8 MB">
|
---|
[aaf0f3f] | 13 | <!ENTITY sshfs-time "less than 0.1 SBU">
|
---|
[ee000c3d] | 14 | ]>
|
---|
| 15 |
|
---|
[aaf0f3f] | 16 | <sect1 id="sshfs" xreflabel="sshfs-&sshfs-version;">
|
---|
| 17 | <?dbhtml filename="sshfs.html"?>
|
---|
[ee000c3d] | 18 |
|
---|
| 19 | <sect1info>
|
---|
[1005be4] | 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
[ee000c3d] | 22 | </sect1info>
|
---|
| 23 |
|
---|
[aaf0f3f] | 24 | <title>sshfs-&sshfs-version;</title>
|
---|
[ee000c3d] | 25 |
|
---|
[aaf0f3f] | 26 | <indexterm zone="sshfs">
|
---|
| 27 | <primary sortas="a-sshfs">sshfs</primary>
|
---|
[ee000c3d] | 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
[aaf0f3f] | 31 | <title>Introduction to Sshfs</title>
|
---|
[ee000c3d] | 32 |
|
---|
| 33 | <para>
|
---|
[aaf0f3f] | 34 | The <application>Sshfs</application> package contains a filesystem
|
---|
[ee000c3d] | 35 | client based on the SSH File Transfer Protocol. This is useful for
|
---|
| 36 | mounting a remote computer that you have ssh access to as a local
|
---|
| 37 | filesystem. This allows you to drag and drop files or run shell commands
|
---|
| 38 | on the remote files as if they were on your local computer.
|
---|
| 39 | </para>
|
---|
| 40 |
|
---|
[1005be4] | 41 | &lfs84_checked;
|
---|
[ee000c3d] | 42 |
|
---|
| 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>
|
---|
[aaf0f3f] | 47 | Download (HTTP): <ulink url="&sshfs-download-http;"/>
|
---|
[ee000c3d] | 48 | </para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
[aaf0f3f] | 52 | Download (FTP): <ulink url="&sshfs-download-ftp;"/>
|
---|
[ee000c3d] | 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
[aaf0f3f] | 57 | Download MD5 sum: &sshfs-md5sum;
|
---|
[ee000c3d] | 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
[aaf0f3f] | 62 | Download size: &sshfs-size;
|
---|
[ee000c3d] | 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>
|
---|
[aaf0f3f] | 67 | Estimated disk space required: &sshfs-buildsize;
|
---|
[ee000c3d] | 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>
|
---|
[aaf0f3f] | 72 | Estimated build time: &sshfs-time;
|
---|
[ee000c3d] | 73 | </para>
|
---|
| 74 | </listitem>
|
---|
| 75 | </itemizedlist>
|
---|
| 76 |
|
---|
[aaf0f3f] | 77 | <bridgehead renderas="sect3">Sshfs Dependencies</bridgehead>
|
---|
[ee000c3d] | 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 80 | <para role="required">
|
---|
[a770b0e] | 81 | <xref linkend="fuse3"/>,
|
---|
[0d7900a] | 82 | <xref linkend="glib2"/>, and
|
---|
[ee000c3d] | 83 | <xref linkend="openssh"/>.
|
---|
| 84 | </para>
|
---|
| 85 |
|
---|
[d3ea9e8] | 86 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 87 | <para role="optional">
|
---|
| 88 | <xref linkend="docutils"/> (required to build the man page)
|
---|
| 89 | </para>
|
---|
| 90 |
|
---|
[ee000c3d] | 91 | <para condition="html" role="usernotes">
|
---|
[aaf0f3f] | 92 | User Notes: <ulink url="&blfs-wiki;/sshfs"/>
|
---|
[ee000c3d] | 93 | </para>
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2 role="installation">
|
---|
[aaf0f3f] | 97 | <title>Installation of Sshfs</title>
|
---|
[f0cc8f73] | 98 | <!--
|
---|
[a14ca50] | 99 | <para>
|
---|
| 100 | If you are building on i686, <application>sshfs</application> needs
|
---|
[2c71e1c] | 101 | an extra CFLAGS setting to be defined. This prevents an integer
|
---|
| 102 | overflow. To do this, run the following command:
|
---|
[a14ca50] | 103 | </para>
|
---|
| 104 |
|
---|
| 105 | <screen><userinput>if [ $(uname -m) = "i686" ]; then
|
---|
[2c71e1c] | 106 | export CFLAGS+="-D_FILE_OFFSET_BITS=64";
|
---|
[a14ca50] | 107 | fi</userinput></screen>
|
---|
[f0cc8f73] | 108 | -->
|
---|
[a14ca50] | 109 |
|
---|
[ee000c3d] | 110 | <para>
|
---|
[aaf0f3f] | 111 | Install <application>Sshfs</application> by running the following
|
---|
[ee000c3d] | 112 | commands:
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
[2e0d6b9] | 115 | <screen><userinput>mkdir build &&
|
---|
| 116 | cd build &&
|
---|
| 117 |
|
---|
| 118 | meson --prefix=/usr .. &&
|
---|
| 119 | ninja</userinput></screen>
|
---|
[ee000c3d] | 120 |
|
---|
| 121 | <para>
|
---|
| 122 | This package does not come with a test suite.
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
| 125 | <para>
|
---|
| 126 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
[2e0d6b9] | 129 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[ee000c3d] | 130 | </sect2>
|
---|
| 131 |
|
---|
[aaf0f3f] | 132 | <sect2 role="using">
|
---|
| 133 | <title>Using Sshfs</title>
|
---|
[ee000c3d] | 134 |
|
---|
| 135 | <para>
|
---|
| 136 | To mount an ssh server you need to be able to log into the server. For
|
---|
[bd12474e] | 137 | example, to mount your remote home folder to the local ~/examplepath (the
|
---|
[12b2d1d6] | 138 | directory must exist and you must have permissions to write to it):
|
---|
[ee000c3d] | 139 | </para>
|
---|
| 140 |
|
---|
[bd12474e] | 141 | <screen><userinput>sshfs example.com:/home/userid ~/examplepath</userinput></screen>
|
---|
[ee000c3d] | 142 |
|
---|
| 143 | <para>
|
---|
| 144 | When you've finished work and want to unmount it again:
|
---|
| 145 | </para>
|
---|
| 146 |
|
---|
[2e0d6b9] | 147 | <screen><userinput>fusermount3 -u ~/example</userinput></screen>
|
---|
[1eaf5ad] | 148 |
|
---|
| 149 | <para>
|
---|
| 150 | You can also mount an <application>sshfs</application> filesystem at boot
|
---|
| 151 | by adding an entry similar to the following in the
|
---|
| 152 | <filename>/etc/fstab</filename> file:
|
---|
| 153 | </para>
|
---|
| 154 |
|
---|
[2e0d6b9] | 155 | <screen><literal>userid@example.com:/path /media/path fuse.sshfs _netdev,IdentityFile=/home/userid/.ssh/id_rsa 0 0</literal></screen>
|
---|
[1eaf5ad] | 156 |
|
---|
| 157 | <para>
|
---|
| 158 | See <command>man 1 sshfs</command> and <command>man 8 mount.fuse</command>
|
---|
| 159 | for all available mount options.
|
---|
| 160 | </para>
|
---|
| 161 |
|
---|
[ee000c3d] | 162 | </sect2>
|
---|
| 163 |
|
---|
| 164 | <sect2 role="content">
|
---|
| 165 | <title>Contents</title>
|
---|
| 166 |
|
---|
| 167 | <segmentedlist>
|
---|
| 168 | <segtitle>Installed Program</segtitle>
|
---|
[c3c56b2] | 169 | <segtitle>Installed Libraries</segtitle>
|
---|
| 170 | <segtitle>Installed Directories</segtitle>
|
---|
[ee000c3d] | 171 |
|
---|
| 172 | <seglistitem>
|
---|
[c3c56b2] | 173 | <seg>
|
---|
| 174 | sshfs
|
---|
| 175 | </seg>
|
---|
| 176 | <seg>
|
---|
| 177 | None
|
---|
| 178 | </seg>
|
---|
| 179 | <seg>
|
---|
| 180 | None
|
---|
| 181 | </seg>
|
---|
[ee000c3d] | 182 | </seglistitem>
|
---|
| 183 | </segmentedlist>
|
---|
| 184 |
|
---|
| 185 | <variablelist>
|
---|
| 186 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 187 | <?dbfo list-presentation="list"?>
|
---|
| 188 | <?dbhtml list-presentation="table"?>
|
---|
| 189 |
|
---|
[aaf0f3f] | 190 | <varlistentry id="sshfs-prog">
|
---|
[ee000c3d] | 191 | <term><command>sshfs</command></term>
|
---|
| 192 | <listitem>
|
---|
| 193 | <para>
|
---|
| 194 | mounts an <command>ssh</command> server as a local file system.
|
---|
| 195 | </para>
|
---|
[aaf0f3f] | 196 | <indexterm zone="sshfs sshfs-prog">
|
---|
[ee000c3d] | 197 | <primary sortas="b-sshfs">sshfs</primary>
|
---|
| 198 | </indexterm>
|
---|
| 199 | </listitem>
|
---|
| 200 | </varlistentry>
|
---|
| 201 | </variablelist>
|
---|
| 202 | </sect2>
|
---|
| 203 | </sect1>
|
---|