<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.andreas-duffner.de/index.php?action=history&amp;feed=atom&amp;title=Sshfs</id>
	<title>Sshfs - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.andreas-duffner.de/index.php?action=history&amp;feed=atom&amp;title=Sshfs"/>
	<link rel="alternate" type="text/html" href="http://wiki.andreas-duffner.de/index.php?title=Sshfs&amp;action=history"/>
	<updated>2026-04-09T12:09:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>http://wiki.andreas-duffner.de/index.php?title=Sshfs&amp;diff=156&amp;oldid=prev</id>
		<title>Andreas: Created page with &quot;== mount as user with sshfs ==  In many cases you will want to mount as user, not as root. Everything with &quot;my&quot; in the beginning has to be changed by you. The uid and gid are ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.andreas-duffner.de/index.php?title=Sshfs&amp;diff=156&amp;oldid=prev"/>
		<updated>2016-02-16T11:49:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== mount as user with sshfs ==  In many cases you will want to mount as user, not as root. Everything with &amp;quot;my&amp;quot; in the beginning has to be changed by you. The uid and gid are ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== mount as user with sshfs ==&lt;br /&gt;
&lt;br /&gt;
In many cases you will want to mount as user, not as root.&lt;br /&gt;
Everything with &amp;quot;my&amp;quot; in the beginning has to be changed by you.&lt;br /&gt;
The uid and gid are normally 1000, but perhaps you&amp;#039;ll have to change them too. Just call &amp;quot;id&amp;quot; on the computer from which you want to call the script.&lt;br /&gt;
If you don&amp;#039;t use the uid/gid/idmap/workaround parameters you will have bad rights for some files.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 sshfs myserver:mydirectory /home/myuser/mnt/myserver -o uid=1000 -o gid=1000 -o idmap=user -o workaround=rename&lt;br /&gt;
&lt;br /&gt;
Unmount:&lt;br /&gt;
 fusermount -u /home/myuser/myserver&lt;br /&gt;
&lt;br /&gt;
== mount as root via /etc/fstab ==&lt;br /&gt;
&lt;br /&gt;
sshfs in /etc/fstab&lt;br /&gt;
&lt;br /&gt;
  sshfs#&amp;lt;user&amp;gt;@&amp;lt;server&amp;gt;:/home/&amp;lt;remote-path&amp;gt; /home/&amp;lt;local-path&amp;gt;  fuse uid=1000,gid=1000,umask=022,allow_other 0 0&lt;br /&gt;
&lt;br /&gt;
To check the connection, call as root&lt;br /&gt;
  mount -a&lt;/div&gt;</summary>
		<author><name>Andreas</name></author>
	</entry>
</feed>