Hetzner - DokuWiki

KonsoleH:Zugriff per FTP/en

Inhaltsverzeichnis

Access Details: FTP

What is FTP?

FTP stands for File Transfer Protocol.

Via FTP you can upload files to a server and download from a server.

When you design a website, you usually create it on your home computer. Using FTP, the files from the website are transferred to your account and are thereby accessible to the public. The required FTP access details can be viewed and changed in konsoleH.

FTP programs

There are countless FTP applications available for download from the Internet. Recommended programs are, for example:

"Access details" -> "FTP"

This is where you can view and change your FTP access details. You can also include additional FTP users who are only allowed access under predefined conditions.

When your account is established, standard FTP access details are provided. In the event that you wish to change these details you can enter the password of your choice here.

Selecting your own password

An FTP password should fulfill some requirements for increased security. Please find these rules when changing the password.

To change the FTP password, simply enter your new password in the relevant text box and click "Save".

Additional FTP users

For additional FTP users you can define the conditions under which they can gain access. It's possible to give access to public_html or a subfolder. Access to the home directory isn't possible for additional ftp users. The name of the users are fix and not choosable.

Encrypted FTP-Access

To bring you a higher level of security while transfering your files you can activate the encrypted ftp access. You need a ftp tool that supports encrypted FTP (e.g. Filezilla, WinSCP). You have two different protocols for this:

SFTP

This one uses SSH for encrypted access. Please note:

  • the port is 22

FTPS (FTP/SSL)

This is directly SSL encrypted FTP access. Please note:

  • Some tools differ between explicit or implicit SSL. Please use the explicit option (FTPES)

SFTP using key authentication

SFTP with key authentication is possible with the main ftp user of an account. Please note that the key must be in SSH public key format (RFC4716). OpenSSH public keys can converted for that purpose.

To enable SFTP using public key authentication, please proceed as follows:

Windows
  • Download puttygen from the Putty website.
  • Generate a private/public key with puttygen via Key -> Generate Key pairs
  • Save the private key in a safe place. We recommend setting a password for this key
  • Save the public key under the file name authorized_sftpkeys
  • Upload the public key to your web space
    • Set up an .ssh folder in the home directory
    • Upload the authorized_sftpkeys file into this folder

For the connection, enter the path to the private key in your FTP program. You may need to use a further add-on program plink for some FTP programs (e.g. Filezilla): Plink

Linux
  • Generate an OpenSSH key using ssh-keygen (if this has not already been done)
  • Convert the format of the public key ssh-keygen -e -f ~/.ssh/id_rsa.pub
  • Save the public key which has been generated under the file name authorized_sftpkeys in the .ssh folder.

For the connection, enter the path to the private key in your FTP program or use an authentication agent tool.

Uploading files with FTP

Uploading files is easiest with a convenient FTP programme. Specify your server address and required FTP access details and connect to your account.

When you have logged on you will see some folders, for example wwwlogs, users and publichtml.

The folder "public_html" is important for your website. This is where you store the files for your website. Proceed as follows:

FileZilla (Freeware)

  1. Start FileZilla
  2. Select in the menu File > Site Manager
  3. Click on the New Site button at the bottom section of the page to create a new connection.
  4. The word New FTP Site is highlighted. Enter the name of your page.
  5. Provide the following information:
    • Host: your-domain.de
    • Server Type: FTP
    • Logon Type: Normal
    • User: FTP Username
    • Password: FTP Password
  6. Click on Connect
  7. When you are connected, double click on the public_html folder and transfer the relevant files (please note: the homepage must carry the name "index.html").

WS_FTP (Shareware)

  1. Start WS_FTP
  2. Select in the menu File > Connect > Site Manager > New Site
  3. Follow the wizard and provide the following details:
    • Site Name: your-domain.de
    • Server Address: your-domain.de
    • FTP site User Name: FTP Username
    • FTP site Password: FTP Password
    • Connection Type: FTP
  4. Click on Finish
  5. To connect to your FTP server, select File > Connect and click on your page name.
  6. When you are connected, double click on the public_html folder and transfer the relevant files (please note: the homepage must carry the name "index.html").
  7. To upload your files you can use the file Explorer or you can drag and crop files from Windows directly into WS FTP.

CuteFTP (Shareware)

  1. Start CuteFTP
  2. Select in the menu File > New > FTP Site
  3. Enter the following information:
    • Label for site: your-domain.de
    • FTP Host Address: your-domain.de
    • FTP site User Name: FTP Username
    • FTP site Password: FTP Password
    • FTP site connection port: 21 (Not necessary with newer versions of CuteFTP)
    • Login Type: Normal
  4. To connect to your FTP server, double click on the page name in the Site Manager window.
  5. When you are connected, double click on the public_html folder and transfer the relevant files (please note: the homepage must carry the name "index.html").

FTP Explorer (Shareware)

  1. Start FTP Explorer
  2. Select in the menu Tools > Connect
  3. Provide the following information:
    • Profile Name: your-domain.de
    • Host Name: your-domain.de
    • User ID: FTP Username
    • Password: FTP Password
  4. In the rest of the fields leave the default values.
  5. Click on Save and select Connect to connect to your FTP server.
  6. When you are connected, double click on the public_html folder and transfer the relevant files (please note: the homepage must carry the name "index.html").

Important points

  • All files which you wish to make publically accessible must be saved in the "public_html" folder.
  • Binary Transfer Mode must be selected for picture files (E.g. .gif, .jpeg).
  • ASCII Mode must be activated for files which will be readable as normal text (E.g. .html, .cgi). When you use the incorrect mode for transfer it can lead to distorted pictures and CGI scripts.
  • Acceptable naming conversions: Our Linux server is case sensitive. This means it differentiates between lower-case and capital letters. In other words, the file name "faq.html" is NOT the same as "FAQ.html". Incorrect link references will display a "File Not Found" error. This also applies to folder names. To avoid these errors we recommend that all file names are written in lower case.
  • Special characters (! @ # $ % ^ & * : ' ~) are not allowed in file names.


© 2018. Hetzner Online GmbH. Alle Rechte vorbehalten.