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
- Create an FTP + SSH account from the Infomaniak Manager.
- Create an SSH key with a secure algorithm, for example
ed25519:ssh-keygen -t ed25519because with an RSA key (
ssh-keygenorssh-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:
- Connect 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
.sshdirectory to CHMOD 700. - Create the
authorized_keysfile and paste your SSH public key into it on a single line (important). - Change the permissions of the
authorized_keysfile 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.
Link to this FAQ: https://faq.infomaniak.com/2054
Has this FAQ been helpful?