Warning, /utilities/krusader/doc/handbook/remote-connections.docbook is written in an unsupported language. File is not indexed.

0001 <!--
0002     SPDX-FileCopyrightText: 2000-2003 Shie Erlich <erlich@users.sourceforge.net>
0003     SPDX-FileCopyrightText: 2000-2003 Rafi Yanai <yanai@users.sourceforge.net>
0004     SPDX-FileCopyrightText: 2004-2010 Frank Schoolmeesters <codeknight@users.sourceforge.net>
0005     SPDX-FileCopyrightText: 2000-2022 Krusader Krew <https://krusader.org>
0006 -->
0007 <sect1 id="remote-connections">
0008   <title>Remote Connections</title>
0009   <indexterm>
0010     <primary>Remote Connections</primary>
0011   </indexterm>
0012   <para>Remote connections are easily made by typing the
0013   &URL; in the 
0014   <link linkend="list_panel">Location Toolbar</link>; these are
0015   actually KIO Slaves. Please note that the
0016   &krusader; panel does not support all
0017   KIO Slave &eg; 
0018   <command>http://</command> will not work in the panel, but will
0019   work in the 
0020   <link linkend="krviewer">viewer</link>. Some examples:</para>
0021   <itemizedlist>
0022     <listitem>
0023       <para>
0024         <userinput>
0025           <command>ftp://</command><replaceable>public.ftpserver.org/folder/</replaceable>
0026         </userinput>
0027       </para>
0028     </listitem>
0029     <listitem>
0030       <para>
0031         <userinput>
0032           <command>fish://</command><replaceable>username@hostname/</replaceable>
0033         </userinput>
0034       </para>
0035     </listitem>
0036     <listitem>
0037       <para>
0038         <userinput>
0039           <command>sftp://</command><replaceable>username:password@sftp.foo.org/</replaceable>
0040         </userinput>
0041       </para>
0042     </listitem>
0043     <listitem>
0044       <para>
0045         <userinput>
0046           <command>ftp://</command><replaceable>username@my.server.org:21/folder/</replaceable>
0047         </userinput>
0048       </para>
0049     </listitem>
0050     <listitem>
0051       <para>
0052         <userinput>
0053           <command>smb://</command><replaceable>username:password@server/share</replaceable>
0054         </userinput>
0055       </para>
0056     </listitem>
0057     <listitem>
0058       <para>
0059         <userinput>
0060           <command>ftp://</command><replaceable>username@proxyusername:password@proxipassword@hostname/folder</replaceable>
0061         </userinput>
0062       </para>
0063     </listitem>
0064     <listitem>
0065       <para>
0066         <userinput>
0067           <command>nfs://</command><replaceable>&lt;host&gt;:&lt;port&gt;&lt;url-path&gt;</replaceable>
0068         </userinput>
0069       </para>
0070     </listitem>
0071     <listitem>
0072       <para>
0073         <userinput>
0074           <command>webdav://</command><replaceable>www.server.com/path/</replaceable>
0075         </userinput>
0076       </para>
0077     </listitem>
0078   </itemizedlist>
0079   <para>You can bookmark these &URL;s, however, please
0080   read the 
0081   <link linkend="bookman">Bookman</link> section regarding 
0082   <emphasis>securely save passwords</emphasis>. For connecting to
0083   multiple locations, bookmark these &URL;s and open
0084   them one by one, or open them all together by using
0085   <link linkend="panel_profiles">Panel profiles</link>. To switch from one to another
0086   location, just open a <link linkend="folder-tabs">Folder tabs</link> for
0087   each.</para>
0088   <para>There are three ways to start a remote connection:</para> 
0089   <itemizedlist>
0090     <listitem>
0091       <para>Type the &URL; in the 
0092       <link linkend="list_panel">Location Toolbar</link></para>
0093     </listitem>
0094     <listitem>
0095       <para>Select 
0096         <menuchoice>
0097           <guimenu>Tools</guimenu>
0098           <guimenuitem>New Net Connection</guimenuitem>
0099         </menuchoice>
0100       which will pop-up a dialog that will ask for the
0101       remote site details. This dialog is handy if you are not used
0102       to type remote &URL;s in the Location Toolbar.
0103       Leaving the password and user name fields empty will log you
0104       in as anonymous. Note: we are planning to rewrite this dialog
0105       window.</para>
0106     </listitem>
0107     <listitem>
0108       <para>You can bookmark a folder on a remote host and
0109       return to this folder from the bookmark button on the top
0110       corner of your panel just like in a web browser.</para>
0111     </listitem>
0112   </itemizedlist>
0113   <para>After you log on to a remote server you can browse it just
0114   like your local hard drive with the following exceptions:</para> 
0115   <itemizedlist>
0116     <listitem>
0117       <para>You cannot execute files on remote servers.</para>
0118     </listitem>
0119     <listitem>
0120       <para>Permissions cannot always be calculated on remote
0121       servers (depends on server and access method) so you might
0122       get a <guilabel>?</guilabel> on the permissions columns for some files.</para>
0123     </listitem>
0124     <listitem>
0125       <para>Disk usage information is not available for most remote
0126       filesystems.</para>
0127     </listitem>
0128   </itemizedlist>
0129   <para>To change the charset of the remote host use 
0130     <menuchoice>
0131       <guimenu>View</guimenu>
0132       <guimenuitem>Select Remote Charset</guimenuitem>
0133     </menuchoice>
0134   .</para>
0135   <para>You can close the current Active Remote
0136   Connection by two separate methods:</para> 
0137   <itemizedlist>
0138     <!--
0139         <listitem>
0140            <para>Manually: <emphasis role="bold"><menuchoice><guimenu>Commands</guimenu>
0141                  <guimenuitem>Disconnect From Net</guimenuitem></menuchoice></emphasis></para>
0142         </listitem>
0143         -->
0144     <listitem>
0145       <para>Manually: Add the disconnect button to the
0146       <link linkend="mainwindow">Main Toolbar</link> and click on it.</para>
0147     </listitem>
0148     <listitem>
0149       <para>Automatically: Change the &URL; in the
0150       <link linkend="list_panel">Location Toolbar</link> .</para>
0151     </listitem>
0152   </itemizedlist>
0153   <note>
0154     <para>&krusader; is a file manager that supports
0155     remote connections via KIO Slaves, but if you
0156     are looking for even more advanced remote connections features,
0157     &eg; an advanced &FTP; client we
0158     recommend you to use &eg;
0159     <ulink url="https://lftp.yar.ru/">LFTP</ulink> or
0160     <ulink url="https://filezilla-project.org/"><application>FileZilla</application></ulink>.</para>
0161   </note>
0162 
0163 <sect2 id="remote-connections-lan-fish">
0164   <title>LAN connections via fish:/ protocol (zeroconf)</title>
0165   <indexterm>
0166     <primary>Remote LAN Connections (zeroconf)</primary>
0167   </indexterm>
0168 
0169 <para>This section is contributed by Andrew Svet (z-vet),
0170       feedback about this chapter is appreciated. Thanks!</para>
0171 
0172  <note>
0173    <para>This works on a &Debian; system, so it will work on &Debian; and derivatives (&kubuntu;, &etc;), though
0174    it should work on other Linuxes as well. 
0175    We assume that you have <link linkend="gloss-ssh">SSH</link> installed, configured and working on 
0176    every machine on LAN you want to connect to/from.
0177    There are plenty of very good tutorials about <link linkend="gloss-ssh">SSH</link> on the net, &eg;
0178    at <ulink url="http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch17_:_Secure_Remote_Logins_and_File_Copying">linuxhomenetworking.com</ulink> 
0179    or just google for it.  We use the default <link linkend="gloss-ssh">SSH</link> port (22) for this chapter.
0180    Remember to change it if you use different one. All modifications, editing &etc; must be done as root. 
0181    </para>
0182  </note>
0183 
0184 <para>
0185 Let's start with installing all the packages we need: 
0186 <screen>
0187 <prompt>#</prompt> <userinput><command>apt-get install</command> <option>avahi-daemon libnss-mdns kdnssd</option></userinput>
0188 </screen>
0189 
0190 Everything is installed, now let's do some configuration. First, we need our services to be announced on LAN.
0191 That is why we installed avahi-daemon: it represents your machine on local network and allows other applications 
0192 to publish services they provide. Avahi-daemon comes with example <filename>ssh.service</filename> configuration 
0193 file found in <filename class="directory">/usr/share/doc/avahi-daemon/examples</filename>. In order to get the service to be 
0194 announced on LAN we need to copy this file to <filename class="directory">/etc/avahi/services</filename> folder: 
0195 <screen>
0196 <prompt>#</prompt> <userinput><command>cp</command> <option>/usr/share/doc/avahi-daemon/examples/ssh.service /etc/avahi/services</option></userinput>
0197 </screen>
0198 
0199 Now we need fish:/ protocol to be announced too, so we use an ssh.service file as a template for fish.service: 
0200 <screen>
0201 <prompt>#</prompt> <userinput><command>cp</command> <option>/etc/avahi/services/ssh.service /etc/avahi/services/fish.service</option></userinput>
0202 </screen>
0203 
0204 This file is just a copy of ssh.service. Edit the <filename>fish.service</filename> file and replace 
0205 <quote>Remote Terminal on %h</quote> with <quote>Fish to %h</quote> and <quote>_ssh._tcp</quote> with <quote>_fish._tcp</quote>.
0206 
0207 Here is how it looks after edit:
0208 <programlisting> 
0209 &lt;?xml version="1.0" standalone='no'?&gt;&lt;!--*-nxml-*--> 
0210 &lt;!DOCTYPE service-group SYSTEM "avahi-service.dtd"&gt;
0211 
0212 &lt;!-- $Id: remote-connections.docbook,v 1.6 2007/05/02 18:07:28 codeknight Exp $ --> 
0213 
0214 &lt;!-- 
0215   This file is part of avahi. 
0216   
0217   avahi is free software; you can redistribute it and/or modify it 
0218   under the terms of the GNU Lesser General Public License as 
0219   published by the Free Software Foundation; either version 2 of the 
0220   License, or (at your option) any later version. 
0221 
0222   avahi is distributed in the hope that it will be useful, but 
0223   WITHOUT ANY WARRANTY; without even the implied warranty of 
0224   MERCHANTABILITY or FITNESS FOR 
0225 
0226 &lt;!-- See avahi.service(5) for more information about this configuration file --> 
0227 
0228 &lt;service-group> 
0229 
0230   &lt;name replace-wildcards="yes">FISH to %h&lt;/name> 
0231 
0232   &lt;service> 
0233     &lt;type>_fish._tcp&lt;/type> 
0234     &lt;port>22&lt;/port> 
0235   &lt;/service> 
0236 
0237 &lt;/service-group>  
0238 </programlisting>
0239 Save the modified file. 
0240 
0241 Now we need to create a new file <filename>_fish._tcp</filename>, open a text editor and add the next lines:
0242 <programlisting>
0243 Name=FISH Protocol (ssh) 
0244 Type=_fish._tcp 
0245 UserEntry=u 
0246 PathEntry=path 
0247 PasswordEntry=p
0248 </programlisting> 
0249 And save the file <filename>/usr/share/apps/zeroconf/_fish._tcp</filename>
0250 
0251 Do the same on each machine on your LAN, then restart avahi-daemon: 
0252 <screen>
0253 <prompt># /etc/init.d/</prompt> <userinput><command>avahi-daemon</command> <option>restart</option></userinput>
0254 </screen>
0255 
0256 Then open &krusader; and type in location-toolbar-lnk: <filename>zeroconf:/</filename> to open the  
0257 <link linkend="gloss-zeroconf">zeroconf</link> connection.
0258 Enter the <guilabel>Fish Protocol</guilabel> folder. Inside you will find the links to each machine that 
0259 announced <filename>fish:/</filename> on your LAN, the location-toolbar-lnk: will point to 
0260 <filename>zeroconf:/_fish._tcp</filename> Double clicking on any of these machines,
0261 them will bring up the password prompt, asking you for your ssh key passphrase (if password was set). 
0262 Enter your passphrase. Congratulations: you connected to remote machine using &krusader;!
0263 </para> 
0264 
0265 </sect2>
0266 
0267 </sect1>
0268 
0269