ssh-askpass(-gnome) fails for ssh-add -c: agent refused operation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-keyring (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
openssh (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Ubuntu uses ssh-agent from OpenSSH which supports adding keys by means of `ssh-add -c` indicating that keys "should be subject to confirmation before being used for authentication. In Ubuntu 18.10 this fails with the error
sign_
To reproduce I used a Ubuntu 18.10 Live "CD", apt-get update && apt-get upgrade, log out and log back in (these steps are not required but we want to use an up-to-date system). Then:
$ sudo apt-get install ssh-askpass-gnome
(...)
$ # verify that ssh-askpass shows a popup, confirm with Enter
$ ssh-askpass ; echo $?
0
$ ssh-keygen
(...)
$ ssh-add -D
All identities removed.
$ ssh-copy-id $sshuser@$sshserver
(...)
Number of key(s) added: 1
(...)
$ ssh $sshuser@$sshserver uname -a
Linux server 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
$ ssh-add -d
Identity removed: /home/ubuntu/
$ ssh-add -c
Enter passphrase for /home/ubuntu/
Identity added: /home/ubuntu/
The user must confirm each use of the key
$ ssh $sshuser@$sshserver uname -a
sign_and_
sshuser@server's password: [^C'ed]
$ ssh-add -l
2048 SHA256:
So, our key is loaded, ssh-askpass is working (also confirmed with `ssh-add -c </dev/null`), but authentication fails with "sign_and_
ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: gnome-session-bin 3.30.0-0ubuntu4
ProcVersionSign
Uname: Linux 4.18.0-10-generic x86_64
ApportVersion: 2.20.10-0ubuntu13.1
Architecture: amd64
CasperVersion: 1.399
CurrentDesktop: ubuntu:GNOME
Date: Thu Jan 17 17:14:35 2019
ExecutablePath: /usr/lib/
LiveMediaBuild: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
ProcEnviron:
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: gnome-session
UpgradeStatus: No upgrade log present (probably fresh install)
summary: |
- ssh-agent fails for ssh-add -c: agent refused operation + ssh-askpass(-gnome): GNOME fails to show dialog |
summary: |
- ssh-askpass(-gnome): GNOME fails to show dialog + ssh-askpass(-gnome) fails for ssh-add -c: agent refused operation |
tags: | added: server-triage-discuss |
Changed in openssh (Ubuntu): | |
status: | New → Invalid |
tags: | removed: server-triage-discuss |
Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1789523, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.