More Avahi Love

Today's Avahi Love posting covers publishing SFTP servers. My NAS box runs SSH, so I can use the ssh: method in gnome-vfs to browse the filesystem (it uses SFTP). The magic service file is:

<?xml version="1.0" standalone='no'?>
<service-group>
  <name replace-wildcards="yes">Remote Files on %h</name>
  <service>
    <type>_sftp-ssh._tcp</type>
    <port>22</port>
  </service>
</service-group>

Restart Avahi and then with a suitable Avahi-enabled gnome-vfs, there will be entries in Places → Network Servers for each machine that file is installed on. Kick arse!

13:10 Monday, 13 Feb 2006 [#] [computers] (7 comments)

Posted by Marcus Meissner at Mon Feb 13 14:15:49 2006:
You can easily do this with openslp for 2 years now ... at least on SUSE Linux.

Check /etc/slp.reg.d/

Ciao, Marcus
Posted by Rosss at Mon Feb 13 15:06:34 2006:
Yes, but SLP isn't used by anything useful. :)
Posted by Freddo at Mon Feb 13 17:25:43 2006:
The irony bites deep: you can browse files on your other systems, automatically ... if you edit some configuration file first.  :-)
Posted by Ross at Mon Feb 13 17:34:45 2006:
I'd love to see something like the OS X integration on Linux, where every daemon publishes the appropriate zeroconf service by default.

Maybe in Dapper+1?
Posted by fudje at Wed Mar 1 08:15:47 2006:
Freddo: Why don't you patch OpenSSH to automatically publish it, then?

This is, actually, quite awesome anyway, because you don't actually have to register your machine on a network to find services, and you don't have static bookmarks or menu entries that may not work....
Posted by Andrew Conkling at Thu Apr 13 17:36:30 2006:
Hey Ross,
Thanks for the info; that's great!

Where do you find stuff like this?  I've been looking for good things to do with Avahi now that I have it working on my server/laptop.
Posted by Ross at Thu Apr 13 17:50:08 2006:
Andrew: the format of that file is documented in avahi, so it was just a matter of making it do what I wanted.

Name:


E-mail:


URL:


Add 10 and 10 (required):


Comment: