Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Connect using SSH key
This guide explains how to connect to your Web Hosting using an SSH key.
Prerequisites
- create an 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
" 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:
- connect to the SSH server of your hosting
go to the root of your hosting:
cd ~
create the directory "
.ssh
":mkdir .ssh
- change the rights of the directory "
.ssh
" to chmod 700 - create the
authorized_keys
file and paste your public SSH key on a single line (important) - change the rights of the
authorized_keys
file to chmod 600
Link to this FAQ: