Let's start with installing all the packages we need: # apt-get install avahi-daemon libnss-mdns kdnssd Everything is installed, now let's do some configuration. First, we need our services to be announced on LAN. That's why we installed avahi-daemon: it represents your machine on local network and allows other applications to publish services they provide. Avahi-daemon comes with example ssh. service configuration file found in / usr/ share/ doc/ avahi-daemon/ examples. In order to get the service to be announced on LAN we need to copy this file to / etc/ avahi/ services directory: # cp / usr/ share/ doc/ avahi-daemon/ examples/ ssh. service / etc/ avahi/ services Now we need fish: / protocol to be announced too, so we use an ssh. service file as a template for fish. service: # cp / etc/ avahi/ services/ ssh. service / etc/ avahi/ services/ fish. service This file is just a copy of ssh. service. Edit the fish. service file and replace "Remote Terminal on %h" with "Fish to %h" and "_ssh. _tcp" with "_fish. _tcp". Here's how it looks after edit: & lt; ?xml version="1.0 "standalone='no '? gt; lt; !--*-nxml-*-- > & lt; !DOCTYPE service-group SYSTEM" avahi-service. dtd"gt; & lt; !-- $Id: remote-connections. docbook, v 1.6 2007/ 05/ 02 18:07:28 codeknight Exp $-- > & lt; !-- This file is part of avahi. avahi is free software; you can redistribute it and/ or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR & lt; !-- See avahi. service(5) for more information about this configuration file -- > & lt; service-group > & lt; name replace-wildcards="yes "> FISH to %hlt; /name > & lt; service > & lt; type > _fish. _tcplt; /type > & lt; port > 22lt; /port > & lt; /service > & lt; /service-group > Save the modified file. Now we need to create a new file _fish. _tcp, open a text editor and add the next lines: Name=FISH Protocol (ssh) Type=_fish. _tcp UserEntry=u PathEntry=path PasswordEntry=p And save the file / usr/ share/ apps/ zeroconf/ _fish. _tcp Do the same on each machine on your LAN, then restart avahi-daemon: # / etc/ init. d/ avahi-daemon restart Then open & krusader; and type in location-toolbar-lnk: zeroconf: / to open the zeroconf connection. Enter the Fish Protocol directory. Inside you'll find the links to each machine that announced fish: / on your LAN, the location-toolbar-lnk: will point to zeroconf: / _fish. _tcp Double clicking on any of these machines, them will bring up the password prompt, asking you for your ssh key passphrase (if password was set). Enter your passphrase. Congratulations: you connected to remote machine using & krusader;!
Låt oss börja med att installera alla paket vi behöver: # apt- get install avahi- daemon libnss- mdns kdnssd Allt är installerat, låt oss nu göra några inställningar. Först av allt kräver vi att våra tjänster annonseras på det lokala nätverket. Det är därför vi installerade avahi- daemon: den representerar din dator på det lokala nätverket, och låter andra program publicera tjänster de tillhandahåller. Avahi- demonen levereras med exempel på inställningsfiler för ssh. service som finns i / usr/ share/ doc/ avahi- daemon/ examples. För att få tjänsten att annonseras på det lokala nätverket måste vi kopiera filen till / etc/ avahi/ services directory: # cp / usr/ share/ doc/ avahi- daemon/ examples/ ssh. service / etc/ avahi/ services Nu kräver vi att också protokollet fish: / annonseras, så vi använder filen ssh. service som en mall för fish. service: # cp / etc/ avahi/ services/ ssh. service / etc/ avahi/ services/ fish. service Filen är bara en kopia av ssh. service, Redigera filen fish. service och ersätt "Remote Terminal on% h" med "Fish to% h" och "_ ssh. _ tcp" med "_ fish. _ tcp". Så här ser det ut efter redigeringen: & lt;? xml version=" 1. 0 "standalone=' no '? gt; lt;! -- * - nxml - * -- > & lt;! DOCTYPE service- group SYSTEM" avahi- service. dtd" gt; & lt;! -- $Id: remote- connections. docbook, v 1. 6 2007/ 05/ 02 18: 07: 28 codeknight Exp $-- > & lt;! -- This file is part of avahi. avahi is free software; you can redistribute it and/ or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR & lt;! -- See avahi. service( 5) for more information about this configuration file -- > & lt; service- group > & lt; name replace- wildcards=" yes "> FISH to% hlt; / name > & lt; service > & lt; type > _ fish. _ tcplt; / type > & lt; port > 22lt; / port > & lt; / service > & lt; / service- group > Spara den ändrade filen. Nu måste vi skapa den nya filen _ fish. _ tcp, öppna en texteditor och lägga följande rader: Name=FISH Protocol (ssh) Type=_ fish. _ tcp UserEntry=u PathEntry=path PasswordEntry=p Spara filen som / usr/ share/ apps/ zeroconf / _ fish. _ tcp Gör samma sak för alla datorer på det lokala nätverket, och starta därefter om avahi- demonen: # / etc/ init. d / avahi- daemon restart Öppna därefter & krusader; och skriv följande platsradens- länk: zeroconf: / för att öppna Zeroconf - anslutningen. Gå till katalogen för protokollet Fish. Där hittar du länkar till alla datorer som annonserar fish: / på det lokala nätverket, platsradens- länk: pekar på zeroconf: / _ fish. _ tcp. Genom att dubbelklicka på någon av datorerna visas lösenordsrutan, som frågar dig efter lösenordsfrasen för ssh- nyckeln (om lösenord är inställt). Ange din lösenordsfras. Gratulerar, du har just anslutit till en annan dator med & krusader;!