User Tools

Site Tools


informatique:logiciels:ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
informatique:logiciels:ssh [2015/08/19 09:58] – [debug mode] pteuinformatique:logiciels:ssh [2017/02/13 09:26] – [Changer la passphrase d'une clé] pteu
Line 270: Line 270:
 debug1: identity file /home/user/.ssh/identity type -1 debug1: identity file /home/user/.ssh/identity type -1
 [..] [..]
 +</code>
 +
 +====Lister les clés présentes====
 +
 +Une commande pratique pour lister les clés SSH présentent localement, et afficher leur niveau de sécurité (taille, algo, etc) :
 +<code bash>
 +for keyfile in ~/.ssh/id_*; do ssh-keygen -l -f "${keyfile}"; done | uniq
 + 1024 c1:ec:c8:00:05:32:5f:a7:fa:ef:69:4e:ea:90:1b:55 /root/.ssh/id_dsa.pub (DSA)
 + 2048 53:16:df:00:10:fb:cc:fb:51:e9:80:e5:a6:4a:86:ab /root/.ssh/id_rsa.pub (RSA)
 +</code>
 +
 +====Modifier une passphrase====
 +
 +Pour changer la passphrase d'une clé SSH existante :
 +<code bash>
 +ssh-keygen -f ~/.ssh/id_rsa -p
 + Key has comment 'id_rsa'
 + Enter new passphrase (empty for no passphrase): 
 + Enter same passphrase again: 
 + Your identification has been saved with the new passphrase.
 </code> </code>
 ===== Liens ===== ===== Liens =====
  
 [[http://people.via.ecp.fr/~alexis/formation-linux/export-display.html|formation Linux]] [[http://people.via.ecp.fr/~alexis/formation-linux/export-display.html|formation Linux]]
informatique/logiciels/ssh.txt · Last modified: 2024/04/05 06:59 by pteu