Public bug reported:

fresh install of ubuntu 19.04, and using all my ssh keys I had before the 
reinstall, anything with ssh just hangs when gnome-keyring-daemon is providing 
the keys:
```
ssh -v my-test-host
[...]
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
[ hangs here forever ]
```

it appears to be setting at least some of the environment vars incorrectly, 
with the agent pid pointing to nothing:
```
$ export | grep SSH
declare -x SSH_AGENT_PID="3300"
declare -x SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"
$ ps auxf | grep 3300
tessa     5950  0.0  0.0   8856   760 pts/0    S+   11:50   0:00              | 
  |   \_ grep --color=auto 3300
$ ps axf | grep keyring
 2642 pts/0    S+     0:00              |   |   \_ grep --color=auto keyring
27662 ?        S      0:00 /usr/bin/ssh-agent -D -a /run/user/1000/keyring/.ssh
 6177 ?        Sl    44:10 /usr/bin/gnome-keyring-daemon --daemonize --login
$ ls -lah /run/user/1000/keyring/
total 0
drwx------  2 tessa tessa 120 Jul 22 10:54 .
drwx------ 11 tessa tessa 260 Jul 22 10:47 ..
srwxrwxr-x  1 tessa tessa   0 Jul 22 10:54 control
srwxrwxr-x  1 tessa tessa   0 Jul 22 10:54 pkcs11
srw-------  1 tessa tessa   0 Jul 22 10:47 .ssh
srwxrwxr-x  1 tessa tessa   0 Jul 22 10:54 ssh

```

if I set the SSH_AUTH_SOCK to the path being set by ssh-agent instead of
gnome-keyring-daemon, things work correctly.

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: gnome-keyring 3.31.91-1ubuntu1
ProcVersionSignature: Ubuntu 5.0.0-20.21-generic 5.0.8
Uname: Linux 5.0.0-20-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Jul 22 11:02:52 2019
SourcePackage: gnome-keyring
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: gnome-keyring (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug disco

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1837448

Title:
  ssh key actions hang with gnome-keyring-daemon

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1837448/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to