[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#935135: ssh-add: loads key with wrong key comment, impairing key management



Hallo Thorsten Glaser,

20.08.19 00:30 Thorsten Glaser:
> Package: openssh-client
> Version: 1:8.0p1-4
> Severity: normal
> 
> │ 1|tglase@tglase-nb:~ $ cat .ssh/id_pvt.pub
> │ ssh-rsa AAA…riqh id_pvt@tglase-nb.lan.tarent.de
> │ tglase@tglase-nb:~ $ ssh-add .ssh/id_pvt
> │ Enter passphrase for .ssh/id_pvt:
> │ Identity added: .ssh/id_pvt (tglase@tglase-nb.lan.tarent.de)
> 			       ^^^^^^
> │ tglase@tglase-nb:~ $ ssh-add -l
> │ 3072 SHA256:5P4HaUvrwJVP/5u1NpDEckku9RNwy9weOs+NPhgSdXI
> /home/tglase/.ssh/id_rsa (RSA) │ 2048
> SHA256:f9MzCY/Cq7WxR83Uzj8uk3uSCBOXef18hn9XIHwLHhE
> tglase@tglase-nb.lan.tarent.de (RSA) ^^^^^^
> 
> In both cases, there must be “id_pvt” instead, so I know
> which key is which.

If

$ file .ssh/id_pvt

shows "OpenSSH private key" (instead of "PEM RSA private key") try:

$ ssh-keygen -c -C id_pvt -f .ssh/id_pvt

to change the embedded comment. The new private key storage format contains an 
own comment.


Grüße
Timo

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: