<div class="gmail_quote">On Sat, Feb 6, 2010 at 3:57 PM, David-Sarah Hopwood <span dir="ltr"><<a href="mailto:david-sarah@jacaranda.org">david-sarah@jacaranda.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Jody Harris wrote:<br>
> On Sat, Feb 6, 2010 at 2:20 PM, Brian Warner <<a href="mailto:warner@lothar.com">warner@lothar.com</a>> wrote:<br>
><br>
</div><div class="im">>> In short, if you follow the "Configuring SFTP Access" instructions in<br>
>> the docs, it ought to work for your karmic box without installing<br>
>> anything extra. Did that fail somehow?<br>
><br>
</div><div class="im">> I'm having a moment of, "Well, why didn't you say so in the first place?"<br>
><br>
> For others: SFTP doc is located in the tarball at<br>
> ~/allmydata-tahoe-1.6.0/docs/frontends/FTP-and-SFTP.txt<br>
><br>
> Followed instructions (keys and ftp.accounts), restarted tahoe.<br>
><br>
> port 8022 is present, but I have not yet been able to attach to the port.<br>
><br>
> "Unknown error<br>
> SFTP command failed for an unknown reason."<br>
<br>
</div>Sigh, gotta love error messages like that.<br>
<br></blockquote><div>This was from trying to connect with KDE's Dolphin filemanager using the sftp kioslave....</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
> I probably missed something.<br>
<br>
sftpd.py prints debugging messages on stdout whenever it receives a<br>
request. What did it print, or did it give a traceback? Can you try<br>
clients other than the command-line sftp client?<br><br></blockquote><div>(This is done using v1.6 of tahoe.)</div><div><br></div><div>I did get connected using the sftp command line client.</div><div><br></div><div>{{{ls}}} fails.</div>
<div><br></div><div>{{{mkdir testing}}} created a directory that I can see with {{{tahoe ls}}}.</div><div><br></div><div>.... very interesting....</div><div><br></div><div>I copies a files {{{tahoe cp path/to/file alias:testing/}}}, and was able to do see it with {{{ls testing/}}} in sftp.</div>
<div><br></div><div>I then attached to sftp://localhost:8022/testing with Dolphin, and I can see the file.</div><div><br></div><div>I can copy the file form the sftp-mounted directory to a local directory with Dolphin.</div>
<div><br></div><div>I cannot open the file directly from the sftp-mounted directory because other programs don't have access to the kioslave.</div><div><br></div><div>So the problem with with the root directory of the alias. Apparently, not all of the information required for ftp/sftp is being passed by tahoe through the ftp/sftp protocol.</div>
<div><br></div><div>At the very least, files can be copied from *some* tahoe directories to the local filesystem.</div><div><br></div><div>....</div><div><br></div><div>Using Nautilus, I can attach to the sftp server. I chose "SSH" as the connection type (this will need to be documented).</div>
<div><br></div><div>In Nautilus, I can double-click on a file, and Eye of the Gnome will open it.... Gimp will open it.</div><div><br></div><div>....</div></div>