SSH Avahi Service
Uploaded on Mon 16th June, 2008 at 22:54 by Phill Sparks
Description
If you're running Avahi in linux you can place this in your /etc/avahi/services/ directory and rename to sshd.service to broadcast that you are SSH capable.
Code
- <?xml version="1.0" standalone='no'?>
- <!DOCTYPE service-group SYSTEM "avahi-service.dtd">
- <service-group>
- <name>My Server</name>
- <service>
- <type>_ssh._tcp</type>
- <port>22</port>
- </service>
- <service>
- <type>_fish._tcp</type>
- <port>22</port>
- </service>
- <service>
- <type>_scp._tcp</type>
- <port>22</port>
- </service>
- </service-group>
Rather than making the user replace the hostname it can be done automatically.
It'd be nice if someone modded sshd to make it report itself automatically, along with Apache,VNC and all the other network services.
Sat 27th September, 2008
Ah neat trick! Are there any other % vars that you have come across? I prefer nice names rather than hostnames when I browse bonjour. Some services are bonjour aware, maybe we should look at how to go about patching each?
Sun 28th September, 2008