On Wed, 14 Feb 2018 10:00:06 +0100 Vojtěch Zeisek <vojtech.zeisek@opensuse.org> wrote:
Dne středa 14. února 2018 9:06:08 CET, Josef Reidinger napsal(a):
few days ago after my usual zypper dup ssh-agent stop working on TW. I check all I know ( like that ENV is set properly and so on ) and run out of ideas.
jreidinger@pepa:~/yast/storage-ng> ssh-add Enter passphrase for /home/jreidinger/.ssh/id_dsa: Identity added: /home/jreidinger/.ssh/id_dsa (/home/jreidinger/.ssh/id_dsa) jreidinger@pepa:~/yast/storage-ng> git pull Enter passphrase for key '/home/jreidinger/.ssh/id_dsa':
So identity added, but then next attempt to use key ends up with question for passphrase again, which makes e.g. remote virt-manager useless.
Might it happer, that DSA was removed from the target server? I'd try nmap target.server.cz --script ssh-hostkey It should output something like ... 22/tcp open ssh | ssh-hostkey: | 1024 7e:56:5c:12:de:... (RSA) | 256 3e:50:26:60:1f:... (ECDSA) |_ 256 c4:21:84:7f:e0:... (EdDSA) ... (well, some hosts actively blocks nmap, but let's hope it will work...) DSA is missing here. On my TW boxes, I don't use ssh-add, but I directly type 'ssh user@host' and KDE asks for the SSH key password. So it works as expected.
Well, when I manually write passphrase (when asked during git pull), server accept my ssh key. So looks like something is wrong with ssh-agent itself. Josef