Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On my Airport Express I can set up SSH advertising for computers on my network.

I have the same option with avahi on a linux server.

What is the utility of doing this ?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

When ssh is advertised via bonjour, you can ssh to the linux machine via "ssh hostname". No client side configuration is required is the server changes IP Address, or is using a non-standard port.

Bounjour advertised ssh servers show up automatically in OSX Terminal's File->New Remote Connection menu. In iTerm, the menu is Bookmarks -> Bonjour, or via Right click -> New -> Bonjour.

To enable this on linux (as the OP already has), install avahi, then your /etc/avahi/ssh.service should look like the following. It should be enabled as a boot service.

<service-group>    
  <name replace-wildcards="yes">%h</name>    
  <service>
    <type>_ssh._tcp</type>
    <port>22</port>
  </service>    
</service-group>

Links:

share|improve this answer
    
That's not what I want, it's already activated, but I want to know the utility of advertising SSh through Bonjour. How useful is it ? –  Studer Feb 13 '10 at 15:26
    
Thank you, that's exactly what I want ! +1 –  Studer Feb 13 '10 at 16:13
1  
Which SSH clients actually use such advertisements? Does generic OpenSSH support it? –  grawity Feb 13 '10 at 21:26
    
For what it's worth, if you are connecting from a mac, you'll have to ssh into hostname.local, I recommend adding an alias in ~/.ssh/config to avoid the extra typing. –  Lee Hambley Feb 7 '13 at 18:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.