How to access an ad hoc data extract
Eulerian can provide ad hoc extract files so that you can retrieve specific data for your needs. When access is needed, Eulerian will send you the connection details. Several protocols are available for accessing the files, depending on your technical setup and your security constraints. The access itself is created in the interface, see FTP access.
Available protocols
The following protocols can be used to access ad hoc extract files:
| Protocol | Description | Port | Recommendation |
|---|---|---|---|
| SFTP | SSH FTP. Connect with an SSH key or with a login and password. | 2022 | Recommended |
| FTPES | FTP over explicit TLS. Explicit secure connection with an encrypted password and TLS. Passive mode. | 21 | Possible |
| FTPIS | FTP over implicit TLS. Implicit secure connection with an encrypted password and TLS. Passive mode. | 990 | Possible |
| FTP | FTP in passive mode, without encryption. | 21 | Not advised |
Note
The preferred FTP connection method is SFTP with an EdDSA SSH key.
Recommended connection: SFTP with an SSH key
For a secure connection, we recommend the SFTP protocol with an EdDSA SSH key.
Generate an SSH key
You can generate an SSH key with the following command:
ssh-keygen -t ed25519
This command generates a key pair:
- a private key, which you keep on your machine;
- a public key, which you enter in your Eulerian interface.
Get the public key
To display the contents of your public key, use the following command:
cat ~/.ssh/id_ed25519.pub
Then copy the contents of this public key into the Eulerian interface.
Where to go: My user account > Manage my access > FTP access
Important
Copy only the public key into the Eulerian interface. The private key must stay confidential and must never be shared.
Connect to the Eulerian SFTP
Once the SSH key is set up, you can connect to the SFTP with the following command:
sftp -P 2022 <login>@<ftp_hostname>
In this command:
| Parameter | Description |
|---|---|
<login> | Your SFTP login. |
<ftp_hostname> | The FTP host name provided by Eulerian. |
-P 2022 | Uses the Eulerian SFTP port. |
Note
The Eulerian SFTP service always presents the same server identity (its host key), whichever server answers. If your client has stored an old key, it may show a host key change warning once. In that case, remove the old stored key, then reconnect and accept the new one.
To remove the old key from your known_hosts file:
ssh-keygen -R "[<ftp_hostname>]:2022"
The host name is written in square brackets, followed by port 2022, because that is how your client stores the key of a server that does not use the standard SSH port. On your next connection, your client asks you to confirm the server’s key: answer yes to save it.
Available directories
The directories are the same whichever access method you use.
In particular, you have write access to the following directory:
/incoming/
This directory is for sending files to Eulerian.
Further technical information
TLS
The TLS 1.0 protocol is deprecated and must no longer be used.
Fail2Ban
A Fail2Ban protection mechanism applies to FTP / SFTP access. After 2 failed login attempts, access is temporarily blocked for 10 minutes.
Good practice
For a stable and secure connection, we recommend that you:
- favour the SFTP protocol;
- use an EdDSA SSH key rather than a password wherever possible;
- never share your private key;
- keep host key checking on: if a warning appears, remove the old stored key rather than turning checking off;
- avoid the unsecured FTP protocol, unless a specific technical constraint requires it.
Once access is set up, you can retrieve the ad hoc extract files that Eulerian provides.