Knowledge base

1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!

Connect with SSH key

This guide explains how to connect to your Web Hosting using an SSH key.

 

This will not work with a Node.js type site and Starter hosting.

 

Prerequisites

  1. Create an FTP + SSH account from the Infomaniak Manager.
  2. Create an SSH key with a secure algorithm, for example ed25519:
    • ssh-keygen -t ed25519

      because with an rsa key (ssh-keygen or ssh-keygen -t rsa), the connection will be refused and the following error will be returned in verbose mode:

      debug1: send_pubkey_test: no mutual signature algorithm

 

Upload the SSH key

To do this:

  1. Log in to the server via SSH (need help?).
  2. Go to the root of your hosting:

    cd ~
  3. Create the directory « .ssh»:

     mkdir .ssh
  4. Change the permissions of the .ssh directory to CHMOD 700.
  5. Create the authorized_keys file and paste your public SSH key on a single line (important).
  6. Change the permissions of the authorized_keys file to CHMOD 600.

Has this FAQ been helpful?