<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Totally Seamless SSHFS under Linux using Fuse and Autofs</title>
	<atom:link href="http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/</link>
	<description>Thoughts, Projects, Happenings, Ideas</description>
	<lastBuildDate>Mon, 08 Mar 2010 23:55:46 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: UbuntuUser</title>
		<link>http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/comment-page-1/#comment-1562</link>
		<dc:creator>UbuntuUser</dc:creator>
		<pubDate>Mon, 18 Jan 2010 22:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/#comment-1562</guid>
		<description>Great timesaver!  Thanks so much for putting this together!</description>
		<content:encoded><![CDATA[<p>Great timesaver!  Thanks so much for putting this together!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumant Oemrawsingh</title>
		<link>http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/comment-page-1/#comment-1520</link>
		<dc:creator>Sumant Oemrawsingh</dc:creator>
		<pubDate>Sun, 22 Nov 2009 23:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/#comment-1520</guid>
		<description>Hum, something went wrong there. In /etc/auto.sshfs, there should &lt;strong&gt;not&lt;/strong&gt; be a newline after mountopts=&quot;-

Also, the line with the echo should be in the same file, it&#039;s not separate.

(Bad formatting on my part, sorry. Would be easier with a preview.)</description>
		<content:encoded><![CDATA[<p>Hum, something went wrong there. In /etc/auto.sshfs, there should <strong>not</strong> be a newline after mountopts=&#8221;-</p>
<p>Also, the line with the echo should be in the same file, it&#8217;s not separate.</p>
<p>(Bad formatting on my part, sorry. Would be easier with a preview.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumant Oemrawsingh</title>
		<link>http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/comment-page-1/#comment-1519</link>
		<dc:creator>Sumant Oemrawsingh</dc:creator>
		<pubDate>Sun, 22 Nov 2009 23:10:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/#comment-1519</guid>
		<description>Great! Thanks for the tutorial! It was of great help.

Of course I did some more digging... And even though I&#039;m the only one using this on my computers, I did find a way to accomplish this for a multi-user environment, using executable maps. It assumes that the different users on your local machine are also different users on each remote machine, which to me seems natural. Also, same as with the original method, I don&#039;t know how secure this is.

Anyway, in /etc/auto.master, I have:
&lt;code&gt;
/mnt/sshfs      /etc/auto.sshfs --timeout=60
&lt;/code&gt;

and in /etc/auto.sshfs, I have:
&lt;code&gt;
#!/bin/bash
# This file must be executable to work! chmod 755!
key=&quot;${1/%:/}&quot;
user=&quot;${key/@*/}&quot;
server=&quot;${key/*@/}&quot;
mountopts=&quot;-fstype=fuse,rw,nodev,nonempty,noatime,allow_other,max_read=65536,follow_symlinks,uid=\$UID,gid=\$GID,UserKnownHostsFile=\$HOME/.ssh/known_hosts,IdentityFile=\$HOME/.ssh/id_rsa&quot;

echo &quot;$mountopts :sshfs\#${user}@${server}\:&quot;
&lt;/code&gt;
Note the \$UID, \$GID and \$HOME (escaped so bash won&#039;t perform substitution), which will be replaced by autofs with the relevant parameters of the user that requested the automount.
Also note that /etc/auto.sshfs must be an executable map:
&lt;code&gt;
chmod 755 /etc/auto.sshfs
&lt;/code&gt;

Now, I can say as an ordinary user with local username soemraws:
&lt;code&gt;
cd /mnt/sshfs/remotename@some.remote.system.com
&lt;/code&gt;
and through the magic combination of executable maps and variable expansion, I have my homedir as user remotename on the system some.remote.system.com, with the local UID and GID. Note that I use id_rsa as the identity file of the calling user, so all users should do the same. Of course, you could tell your users to symlink their identity to ~/.ssh/identity and use that in IdentityFile.

In my local homedir, I can make symbolic links to /mnt/sshfs/... and other users can as well. As you see, as long as two different local users are also two different users on the remote system, there is no clash of directory names in /mnt/sshfs, since the key is user@remote.

If you require tunnels to be setup, you can expand /etc/auto.sshfs to look for specific files in the user&#039;s home dir. Since /etc/auto.sshfs is a bash script, the sky is the limit!</description>
		<content:encoded><![CDATA[<p>Great! Thanks for the tutorial! It was of great help.</p>
<p>Of course I did some more digging&#8230; And even though I&#8217;m the only one using this on my computers, I did find a way to accomplish this for a multi-user environment, using executable maps. It assumes that the different users on your local machine are also different users on each remote machine, which to me seems natural. Also, same as with the original method, I don&#8217;t know how secure this is.</p>
<p>Anyway, in /etc/auto.master, I have:<br />
<code><br />
/mnt/sshfs      /etc/auto.sshfs --timeout=60<br />
</code></p>
<p>and in /etc/auto.sshfs, I have:<br />
<code><br />
#!/bin/bash<br />
# This file must be executable to work! chmod 755!<br />
key="${1/%:/}"<br />
user="${key/@*/}"<br />
server="${key/*@/}"<br />
mountopts="-fstype=fuse,rw,nodev,nonempty,noatime,allow_other,max_read=65536,follow_symlinks,uid=\$UID,gid=\$GID,UserKnownHostsFile=\$HOME/.ssh/known_hosts,IdentityFile=\$HOME/.ssh/id_rsa"</p>
<p>echo "$mountopts :sshfs\#${user}@${server}\:"<br />
</code><br />
Note the \$UID, \$GID and \$HOME (escaped so bash won&#8217;t perform substitution), which will be replaced by autofs with the relevant parameters of the user that requested the automount.<br />
Also note that /etc/auto.sshfs must be an executable map:<br />
<code><br />
chmod 755 /etc/auto.sshfs<br />
</code></p>
<p>Now, I can say as an ordinary user with local username soemraws:<br />
<code><br />
cd /mnt/sshfs/remotename@some.remote.system.com<br />
</code><br />
and through the magic combination of executable maps and variable expansion, I have my homedir as user remotename on the system some.remote.system.com, with the local UID and GID. Note that I use id_rsa as the identity file of the calling user, so all users should do the same. Of course, you could tell your users to symlink their identity to ~/.ssh/identity and use that in IdentityFile.</p>
<p>In my local homedir, I can make symbolic links to /mnt/sshfs/&#8230; and other users can as well. As you see, as long as two different local users are also two different users on the remote system, there is no clash of directory names in /mnt/sshfs, since the key is user@remote.</p>
<p>If you require tunnels to be setup, you can expand /etc/auto.sshfs to look for specific files in the user&#8217;s home dir. Since /etc/auto.sshfs is a bash script, the sky is the limit!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: D-Rock</title>
		<link>http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/comment-page-1/#comment-1393</link>
		<dc:creator>D-Rock</dc:creator>
		<pubDate>Fri, 19 Jun 2009 21:22:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/#comment-1393</guid>
		<description>This is a great help. Thank you! It seems much better than manually doing sshfs then having it flake out and hang my apps... I added two options which (I discovered with manual sshfs mounting) make the transfer from remote systems MUCH quicker (at the expense of some encryption security), and solve some permissions issues by adding the phrase:

Cipher=&quot;blowfish&quot;,idmap=user,

in between all the other options in each line in /etc/auto.sshfs

Grazie!</description>
		<content:encoded><![CDATA[<p>This is a great help. Thank you! It seems much better than manually doing sshfs then having it flake out and hang my apps&#8230; I added two options which (I discovered with manual sshfs mounting) make the transfer from remote systems MUCH quicker (at the expense of some encryption security), and solve some permissions issues by adding the phrase:</p>
<p>Cipher=&#8221;blowfish&#8221;,idmap=user,</p>
<p>in between all the other options in each line in /etc/auto.sshfs</p>
<p>Grazie!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mounting SSH / FTP for Easy Access &#171; Naatan.com - Opensource Web Developer</title>
		<link>http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/comment-page-1/#comment-1286</link>
		<dc:creator>Mounting SSH / FTP for Easy Access &#171; Naatan.com - Opensource Web Developer</dc:creator>
		<pubDate>Tue, 02 Dec 2008 03:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/#comment-1286</guid>
		<description>[...] Using Ubuntu I came to the solution of using SSHFS, it took me a while to find a good tutorial on how to auto-mount using this protocol, but in the end I found a blog by Colin M from The Spark Between&#160; on how to auto-mount sshfs on Ubuntu.. [...]</description>
		<content:encoded><![CDATA[<p>[...] Using Ubuntu I came to the solution of using SSHFS, it took me a while to find a good tutorial on how to auto-mount using this protocol, but in the end I found a blog by Colin M from The Spark Between&nbsp; on how to auto-mount sshfs on Ubuntu.. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/comment-page-1/#comment-1271</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Sat, 15 Nov 2008 18:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/#comment-1271</guid>
		<description>Thanks so much for this, I&#039;ve been messing with SSHFS for a while now, this worked perfectly for me :-) Thanks a lot.

I just wish the SSHFS protocol was a bit faster :) (I know server speed is involved, but it seems slower than it should be).</description>
		<content:encoded><![CDATA[<p>Thanks so much for this, I&#8217;ve been messing with SSHFS for a while now, this worked perfectly for me :-) Thanks a lot.</p>
<p>I just wish the SSHFS protocol was a bit faster :) (I know server speed is involved, but it seems slower than it should be).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: komaruloh</title>
		<link>http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/comment-page-1/#comment-1252</link>
		<dc:creator>komaruloh</dc:creator>
		<pubDate>Thu, 06 Nov 2008 02:25:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/#comment-1252</guid>
		<description>Nice tutorial, really helps me a lot.</description>
		<content:encoded><![CDATA[<p>Nice tutorial, really helps me a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: candido duarte</title>
		<link>http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/comment-page-1/#comment-1203</link>
		<dc:creator>candido duarte</dc:creator>
		<pubDate>Wed, 13 Aug 2008 03:58:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/#comment-1203</guid>
		<description>I think using afuse would solve a lot of problems here.
Take a look &lt;a href=&quot;http://afuse.sourceforge.net&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>I think using afuse would solve a lot of problems here.<br />
Take a look <a href="http://afuse.sourceforge.net" rel="nofollow">here</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zak Brown</title>
		<link>http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/comment-page-1/#comment-991</link>
		<dc:creator>Zak Brown</dc:creator>
		<pubDate>Thu, 31 Jan 2008 01:45:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/#comment-991</guid>
		<description>Any thoughts on using a non-priv user&#039;s ssh-agent to provide the key rather than using an unencrypted private key in root&#039;s homedir?

According to the ssh-agent Wikipedia article, ssh-agent creates a socket in /tmp that could be used by root to decrypt an ssh challenge response.  

So shouldn&#039;t it be possible to have autofs do this?  With fuse Autofs you can pass any ssh option you want, so a good starting point would be to see if you can get the root user to open up ssh connections using the non-priv user&#039;s key.  

After that autofs wildcards would be cool.  The goal being a directory in my home dir where any directory you change into automatically attempts to make an sshfs mount point to that machine.</description>
		<content:encoded><![CDATA[<p>Any thoughts on using a non-priv user&#8217;s ssh-agent to provide the key rather than using an unencrypted private key in root&#8217;s homedir?</p>
<p>According to the ssh-agent Wikipedia article, ssh-agent creates a socket in /tmp that could be used by root to decrypt an ssh challenge response.  </p>
<p>So shouldn&#8217;t it be possible to have autofs do this?  With fuse Autofs you can pass any ssh option you want, so a good starting point would be to see if you can get the root user to open up ssh connections using the non-priv user&#8217;s key.  </p>
<p>After that autofs wildcards would be cool.  The goal being a directory in my home dir where any directory you change into automatically attempts to make an sshfs mount point to that machine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Autofs and sshfs - the perfect couple &#124; tjansson.dk</title>
		<link>http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/comment-page-1/#comment-959</link>
		<dc:creator>Autofs and sshfs - the perfect couple &#124; tjansson.dk</dc:creator>
		<pubDate>Wed, 16 Jan 2008 09:39:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/#comment-959</guid>
		<description>[...] laptop and the laptop is stolen the burglar could gain access to the remote systems.    References  http://www.mccambridge.org/&#8230; [...]</description>
		<content:encoded><![CDATA[<p>[...] laptop and the laptop is stolen the burglar could gain access to the remote systems.    References  <a href="http://www.mccambridge.org/&#8230" rel="nofollow">http://www.mccambridge.org/&#8230</a>; [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
