Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes |
en:documentation:tutorials:ssh:externe [2018/05/28 13:22] – cpetit | en:documentation:tutorials:ssh:externe [2018/05/28 14:50] – [Use SSH keys and/or SSH agent] cpetit |
---|
===== Use SSH keys and/or SSH agent ===== | ===== Use SSH keys and/or SSH agent ===== |
| |
Vous pouvez simplifier votre usage des commandes SSH en utilisant un jeu de clefs, un agent SSH et une configuration adaptée (voir le [[documentation:tutorials:ssh:accueil#utiliser_une_clef_ssh_et_un_agent|paragraphe suivant]] et [[documentation:tutorials:ssh:clef_agent_ssh#exemple_de_configuration_pour_linux_et_bsd|l'exemple de fichier de configuration]]). | You can simplify your usage of SSH commands by using a set of keys, an SSH agent and a suitable configuration (see [[en:documentation:tutorials:ssh:accueil#use_ssh_key_and_ssh_agent|this documentation]]) and [[[[en:documentation:tutorials:ssh:clef_agent_ssh#linux_and_bsd_configuration_example|this example configuration file]]). |
| |
Si vous disposez d'un jeu de clefs SSH (personnel, avec passphrase), vous pouvez **ajouter** votre clef publique (id_?sa.pub) au fichier ''~/.ssh/authorized_keys''. | |
| |
* pour ''ssh.psmn.ens-lyon.fr'' (home local) | |
| If you have a set of SSH keys (personal, with passphrase), you can ** add ** your public key (id_?sa.pub) to the ''~/.ssh/authorized_keys'' file. |
| |
| * for ''ssh.psmn.ens-lyon.fr'' (home local) |
| |
<code bash> | <code bash> |
scp ~/.ssh/id_rsa.pub votrelogin@ssh.psmn.ens-lyon.fr:~/.ssh/id_rsa.pub.perso | scp ~/.ssh/id_rsa.pub yourlogin@ssh.psmn.ens-lyon.fr:~/.ssh/id_rsa.pub.perso |
| |
ssh votrelogin@ssh.psmn.ens-lyon.fr | ssh yourlogin@ssh.psmn.ens-lyon.fr |
| |
cat .ssh/id_rsa.pub.perso >> .ssh/authorized_keys | cat .ssh/id_rsa.pub.perso >> .ssh/authorized_keys |
</code> | </code> |
| |
* pour ''allo-psmn'' (home PSMN) | * for ''allo-psmn'' (home PSMN) |
| |
<code bash> | <code bash> |
scp ~/.ssh/id_rsa.pub votrelogin@allo-psmn:~/.ssh/id_rsa.pub.perso | scp ~/.ssh/id_rsa.pub yourlogin@allo-psmn:~/.ssh/id_rsa.pub.perso |
| |
ssh votrelogin@allo-psmn | ssh yourlogin@allo-psmn |
| |
cat .ssh/id_rsa.pub.perso >> .ssh/authorized_keys | cat .ssh/id_rsa.pub.perso >> .ssh/authorized_keys |