Ticket #58 (closed enhancement: fixed)

Opened 7 years ago

Last modified 7 years ago

Advertise _sftp._tcp in ssh.service.

Reported by: ed@… Owned by: lennart
Milestone: Avahi 0.6.14 Component: avahi-daemon
Keywords: Cc:

Description

Currently ssh.service advertises _ssh._tcp. Since sftp can always be run over ssh, it would be useful to add _sftp._tcp, so that local machines show up in the file browser.

Change History

Changed 7 years ago by lennart

  • status changed from new to assigned

ssh.service is only an example. You're welcome to edit it do suit your needs. I wonder if it makes much sense to ship a premade sftp service file with avahi.

Oh, the service type for SSH SFTP is _ssh-sftp._tcp btw, not just _sftp._tcp.

Changed 7 years ago by lennart

It doesn't make sense to stick the SFTP and the SSH service into the same service file. The ability to put multiple services into a single service file is for services which implement more than one protocol and where the name should change simultaneously on name conflict.

A good example are printers. Printers usually support more than one protocol, such as _ipp._tcp and _lpr._tcp. A printer must make sure that the services it registers for each of the service types must always be named the same.

Another example is _webdav._tcp and _webdavs._tcp. However an SFTP service should hardly always bear the same name as the associated SSH service. The current SSH service fragment which is shipped with Avahi names the SSH service "Remote Terminal on %h". However the SFTP service should probably named "SSH File Transfer on %h" or so.

The correct solution is to add a seperate service fragment for the SFTP service.

Changed 7 years ago by lennart

  • status changed from assigned to closed
  • resolution set to fixed

(In [1294]) add service file fragment for _sftp-ssh._tcp (closes #58)

Changed 7 years ago by lennart

  • milestone set to Avahi 0.6.14
Note: See TracTickets for help on using tickets.