« Clever Cloud Tools » : différence entre les versions
Aller à la navigation
Aller à la recherche
(Création) |
m (Ajout liens connexes) |
||
| (Une version intermédiaire par le même utilisateur non affichée) | |||
| Ligne 1 : | Ligne 1 : | ||
Installer l'outil de management d'instance de Clever Cloud : | Installer l'outil de management d'instance Clever Tools<ref>https://www.clever-cloud.com/doc/reference/clever-tools/getting_started/</ref> de Clever Cloud : | ||
Commande à lancer selon l'OS : | Commande à lancer selon l'OS : | ||
| Ligne 6 : | Ligne 6 : | ||
#dans son shell | #dans son shell | ||
brew install CleverCloud/homebrew-tap/clever-tools | brew install CleverCloud/homebrew-tap/clever-tools | ||
</syntaxhighlight>Windows : | </syntaxhighlight>Windows :<syntaxhighlight lang="shell"> | ||
#Todo | |||
Linux :<syntaxhighlight lang="shell"> | </syntaxhighlight>Linux :<syntaxhighlight lang="shell"> | ||
npm install -g clever-tools | npm install -g clever-tools | ||
</syntaxhighlight>L'outil est lancé par la commande :<syntaxhighlight lang="shell"> | </syntaxhighlight>L'outil est lancé par la commande :<syntaxhighlight lang="shell"> | ||
| Ligne 15 : | Ligne 15 : | ||
== Ainsi pour lancer une session ssh avec une instance : == | == Ainsi pour lancer une session ssh avec une instance : == | ||
Prérequis : installer une clé SSH sur son poste.<syntaxhighlight lang="shell"> | Prérequis : installer une clé SSH<ref>https://www.clever-cloud.com/doc/getting-started/ssh-keys/</ref> sur son poste.<syntaxhighlight lang="shell"> | ||
ssh-keygen -t ed25519 -C "my-email@example.com" | ssh-keygen -t ed25519 -C "my-email@example.com" | ||
#... puis | #... puis | ||
Dernière version du 22 novembre 2023 à 15:14
Installer l'outil de management d'instance Clever Tools[1] de Clever Cloud :
Commande à lancer selon l'OS :
Mac OS :
#dans son shell
brew install CleverCloud/homebrew-tap/clever-tools
Windows :
#Todo
Linux :
npm install -g clever-tools
L'outil est lancé par la commande :
clever
Ainsi pour lancer une session ssh avec une instance :[modifier | modifier le wikicode]
Prérequis : installer une clé SSH[2] sur son poste.
ssh-keygen -t ed25519 -C "my-email@example.com"
#... puis
cat ~/.ssh/ed25519.pub
Copier le contenu de la clé publique au sein du backoffice Clever Cloud : https://console.clever-cloud.com/users/me/ssh-keys Puis :
#Lier l'application avec son tool en récupérant l'app id de son app dans le backoffice clever
clever link <app-id>
#Vérifer la liaison en tapant la commande suivante
clever applications
#Sortie
Application ******
alias: *****
id: *******
#Récupérer l'alias puis
clever ssh --alias=*****