Skip to content

In this repo, I show you how to connect to your Infomaniak host via Git bash using an SSH key.

devwithmaya/ssh-infomaniak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Hosting on a shared via SSH (Infomaniak)

  • Create a host-specific SSH key

  • Create an SSH alias and add our public key

  • Set up a remote git repository to version the project

  • Put the sources online and prepare the basic configuration

  • Configure the host to point the domain to the correct folder

Creation of the SSH key

The first step will take place on our machine and we will generate a key specific to this host.

Installation

Open your Git Bash and enter this command :

  ssh-keygen -t ed25519 -f ~/.ssh/project

On the Infomaniak side, we are going to create a new SSH user by going to the FTP/SSH section . To simplify the SSH connection we will, on our machine, create an alias by modifying the configuration file ~/.ssh/config

  Host project
    HostName x0000.ftp.infomaniak.com
    User x0000_artco
    IdentityFile ~/.ssh/project
    IdentitiesOnly yes

This will make it easier for us to connect to this server by simply typing the command

  ssh project

To avoid having to enter the host's password every time we connect, we'll copy the public key generated at the beginning, using the "ssh-copy-id" command.

  ssh-copy-id -i ~/.ssh/project.pub project

About

In this repo, I show you how to connect to your Infomaniak host via Git bash using an SSH key.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published