How to set up sFTP for using Certificate Authentication on Linux

These instructions apply to users who are receiving their statements via sFTP. If you elected to receive your statements via sFTP, you would first need to generate an RSA Key pair.

There are many Linux distributions and there are multiple methods to access the IBKR sFTP server. sFTP clients such as FileZilla can be used. In this article we explain how to realize the connection to the IBKR FTP server using Ubuntu Linux and Filezilla.

How to generate an RSA Key pair

  1. 1. On your Linux machine, click on the Applications icon in the bottom left corner of you screen.

  2. In the search box, type terminal and then click on the Terminal icon in the search results.

  3. In the Terminal window, type sudo apt-get install filezilla putty-tools in order to install the required software. Enter your sudo password when requested.

  4. Once the software installation is complete, type puttygen -t rsa -b 2048 -o privatekey.ppk in order to generate the RSA Key pair.
    You will be asked to enter a passphrase and type it again to confirm.

    Keeping a secure copy of this password is essential. Any loss of this password will require the whole process to be repeated.

  5. Type puttygen -L privatekey.ppk -o public.key in order to export the public part of the Key pair to the file public.key

  6. Click on the Applications icon in the bottom left corner of your screen.

  7. In the search box, type FileZilla and then click on the FileZilla icon in the search results.

  8. Click on the FileZilla top menu File -> Site Manager...

  9. In the Site Manager window, click on the button New site to create a new connection.

  10. In the right panel (called General):

    • Select SFTP - SSH File Transfer Protocol as Protocol

    • Enter xfer.interactivebrokers.com in the Host field

    • Enter 32 in the Port field

    • Select Key file as Logon Type

    • Enter the username provided to you by Interactive Brokers in the User field

  11. Click on Browse next to the Key file field.

  12. Move to the folder where your Key pair was created (normally your user folder: /users/yourusername/). Select the file privatekey.ppk and click on the Open button. This will set it as the Key file in your connection parameters.

  13. Click on Rename and select a name of your preference for this connection (e.g. IBKR sFTP). Press Enter to confirm the name.

  14. Click on OK to save your connection parameters.

  15. Click on the folder icon on the left hand toolbar of your Desktop. This will launch the File application.

  16. Move to the folder where you saved your Key pair (normally your user folder: /users/yourusername/). Right click on the file public.key and select Send to...

    The file will be attached to an empty email. Send the email to the Reporting Integration Team, as per KB 3842.

    Do NOT send us your private key. Send us only your public one.