FTP (en): Unterschied zwischen den Versionen

Aus Gemini-Wiki
Zur Navigation springen Zur Suche springen
Zeile 60: Zeile 60:
 
== Tips and Tricks ==
 
== Tips and Tricks ==
 
=== File transfer ===
 
=== File transfer ===
Make sure the file transfer is configured as '''Binary''' and not as [http://en.wikipedia.org/wiki/ASCII ASCII] in the FPT client. Otherwise scripts and packages (*.ipk) won't work on the dreambox after the transfer.
+
Make sure the file transfer is configured as '''Binary''' and not as [http://en.wikipedia.org/wiki/ASCII ASCII] in the FTP client. Otherwise scripts and packages (*.ipk) won't work on the Dreambox after the transfer.
 
=== FTP default path ===
 
=== FTP default path ===
Under [[OE 2.0 (en)|OE2.0]] the default path on the dreambox for FTP is <code>/home/root</code>,  and no longer [http://en.wikipedia.org/wiki/Root_directory root]. If the root should be used, there are different ways to configure this:
+
Under [[OE 2.0 (en)|OE2.0]] the default path on the Dreambox for FTP is <code>/home/root</code>,  and no longer [http://en.wikipedia.org/wiki/Root_directory root]. If the root should be used, there are different ways to configure this:
 
* Configure the [[FTP_setup_(en)#Set_the_default_path_of_the_Dreambox|default path]], as it is possible with e.g. FileZilla.
 
* Configure the [[FTP_setup_(en)#Set_the_default_path_of_the_Dreambox|default path]], as it is possible with e.g. FileZilla.
 
* Edit the configuration file <code>/etc/vsftpd.conf</code> of the FTP [http://en.wikipedia.org/wiki/Vsftpd server]. A linux compatible editor must be used to add the following line:  
 
* Edit the configuration file <code>/etc/vsftpd.conf</code> of the FTP [http://en.wikipedia.org/wiki/Vsftpd server]. A linux compatible editor must be used to add the following line:  
Zeile 68: Zeile 68:
 
local_root=/
 
local_root=/
 
</syntaxhighlight>
 
</syntaxhighlight>
Reboot the dreambox, and from now on the root will be used for the FTP connection.
+
Reboot the Dreambox, and from now on the root will be used for the FTP connection.
  
 
[[Kategorie:Software-Tool]]
 
[[Kategorie:Software-Tool]]

Version vom 22. September 2013, 08:51 Uhr

Deutsch.png - in Deutsch English.png - in English

FTP (File Transfer Protocol) is an unencrypted protocol to transfer (read: send and receive) files in ASCII or binary format from one computer to another. It doesn't matter whether both computers have the same CPU architecture or operating system.

So it is easy to transfer files between different systems (like Dreambox and PC).

For a FTP connection, one side has to start a FTP server and the other side a FTP client application. The Dreamboxes run a FTP server by default, PCs don't. So if you want to transfer files from a Dreambox to a PC, you have to start the FTP client on the PC. For the other way around (FTP client on the Dreambox), you need to start a FTP server on the PC. No matter which side is server and which side is client, one can always transfer files in both directions, so no real need for a FTP server on the PC side.

How to start a FTP session?

FTP session - Initial screen after login

A FTP client is preinstalled on Windows as well as on Linux. One can start it like this:

 ftp $IP_Address

where $IP_Address has to be replaced by the IP address of the Dreambox, of course.

The default user credentials of the Dreamboxes are:

for DM500, DM5600, DM5620, Triax 272, DM7000

  • username: root
  • password: dreambox

for DM 500+, DM 500 HD (v2), DM 520, DM 600 PVR, DM 520, DM 525, DM 800 HD PVR, DM 800 HD se (v2), DM 820 HD, DM 900, DM 920, DM 7020, DM 7025(+), DM 8000 HD PVR, DM 7020 HD (v2), DM 7080 HD

  • username: root
  • no password (just press <enter>)

After a successful login, one is connected to the FTP server and can transfer files.

Password

Use the following article to set or change the password.

Hauptbeitrag.png see article: Change password

Client applications

One can also use one of the following FTP clients (just a small list of examples; there are a lot more available):

What kind of FTP server is running on a Dreambox?

The standard FTP server installed on a Dreambox is "vsftpd". One can find the configuration files at /etc/vsftpd.conf.

Ambox notice.png The abbreviation vsftp is a shortcut for very secure, but this "secure" has nothing to do with encryption but reliability instead! It just means, the server process is running very reliable! Any kind of data transfer (including the username and password) is still unencrypted (read: clear text).

How to setup a FTP session to a Dreambox?

There is an article describing the setup for FileZilla.

Hauptbeitrag.png see article: FTP setup

What about encryption?

Because all network data transfer via FTP is using clear text, tapping passwords can easily be done. Another possibility would be to use encrypted connections via Secure-Shell with SCP (Secure CoPy), or SFTP (SSH File Transfer Protocol).

Because regularly no one transfers data from/to a Dreambox via Internet, there is no problem if one uses unencrypted FTP. You should never do this, if you expose a Dreambox to the Internet or any other publicly available network (even not if you changed the password to something extremely complicated).

Tips and Tricks

File transfer

Make sure the file transfer is configured as Binary and not as ASCII in the FTP client. Otherwise scripts and packages (*.ipk) won't work on the Dreambox after the transfer.

FTP default path

Under OE2.0 the default path on the Dreambox for FTP is /home/root, and no longer root. If the root should be used, there are different ways to configure this:

  • Configure the default path, as it is possible with e.g. FileZilla.
  • Edit the configuration file /etc/vsftpd.conf of the FTP server. A linux compatible editor must be used to add the following line:
local_root=/

Reboot the Dreambox, and from now on the root will be used for the FTP connection.