Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
documentation:informatique:linux:ssh:index [2019/01/23 14:06] – [Connexion avec clefs] f1sls | documentation:informatique:linux:ssh:index [2019/01/23 14:07] (Version actuelle) – [➋] f1sls | ||
---|---|---|---|
Ligne 16: | Ligne 16: | ||
You need to use an ssh agent. Short answer: try | You need to use an ssh agent. Short answer: try | ||
+ | < | ||
$ ssh-add | $ ssh-add | ||
- | before pushing. | + | </ |
+ | Supply your passphrase when asked. | ||
If you aren't already running an ssh agent you will get the following message: | If you aren't already running an ssh agent you will get the following message: | ||
+ | < | ||
Could not open a connection to your authentication agent. | Could not open a connection to your authentication agent. | ||
+ | </ | ||
In that situation, you can start one and set your environment up thusly | In that situation, you can start one and set your environment up thusly | ||
- | eval $(ssh-agent) | + | < |
- | Then repeat the ssh-add command. | + | $ eval $(ssh-agent) |
+ | </ | ||
+ | Then repeat the '' | ||
===== Raccourci de connexion ===== | ===== Raccourci de connexion ===== | ||
Pour nous connecter sur le serveur très rapidement, nous allons créer en local un fichier de configuration avec ses coordonnées : | Pour nous connecter sur le serveur très rapidement, nous allons créer en local un fichier de configuration avec ses coordonnées : |