Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Connect with SSH key
This guide explains how to connect to your Web Hosting using an SSH key.
Prerequisites
- Create a FTP + SSH account from the Infomaniak Manager.
- Create an SSH key with a secure algorithm, e.g.
ed25519
:ssh-keygen -t ed25519
because with an rsa key (
ssh-keygen
orssh-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
For this:
- Log in to the server via SSH (need help?).
Go to the root of your hosting:
cd ~
Create the «
.ssh
» directory:mkdir .ssh
- Change the permissions of the
.ssh
directory to 700. - Create the file
authorized_keys
and paste your public SSH key into it on a single line (important). - Change the permissions of the
authorized_keys
file to chmod 600.
Link to this FAQ: