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.

 

✘ UNAVAILABLE with
sites of type Node.js
and Starter hosting plans.


 

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. Connect to the server via SSH (need help?).
  2. Go to the root of your hosting:

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

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

 

SSH agent forwarding (ForwardAgent / ssh -A) is not supported on the Infomaniak infrastructure, as this SSH agent forwarding feature poses significant security risks.


Has this FAQ been helpful?