Permission denied when mounting sftp using gpg-agent and smart card
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gvfs (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When I try to mount an sftp backend using public key authentication with the private key stored on a smart card, I get a permission denied error. I'm on Ubuntu 16.04.3 LTS, with gvfs 1.28.2-
dseomn@solaria:~$ echo $SSH_AUTH_SOCK
/home/dseomn/
dseomn@solaria:~$ dbus-update-
dseomn@solaria:~$ killall gvfsd
dseomn@solaria:~$ gvfs-mount sftp://[redacted]
Error mounting location: Permission denied
dseomn@solaria:~$ tail -n 9 /var/log/syslog
Sep 27 14:48:21 solaria org.gtk.
Sep 27 14:48:21 solaria org.gtk.
Sep 27 14:48:21 solaria org.gtk.
Sep 27 14:48:21 solaria org.gtk.
Sep 27 14:48:21 solaria org.gtk.
Sep 27 14:48:21 solaria org.gtk.
Sep 27 14:48:21 solaria org.gtk.
Sep 27 14:48:21 solaria org.gtk.
Sep 27 14:48:21 solaria org.gtk.
dseomn@solaria:~$ /usr/bin/ssh -v '-oForwardX11 no' '-oForwardAgent no' '-oPermitLocalC
OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /home/dseomn/
debug1: /home/dseomn/
debug1: /home/dseomn/
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Executing proxy command: exec [redacted]
debug1: key_load_public: No such file or directory
debug1: identity file /home/dseomn/
debug1: key_load_public: No such file or directory
debug1: identity file /home/dseomn/
debug1: permanently_
debug1: key_load_public: No such file or directory
debug1: identity file /home/dseomn/
debug1: key_load_public: No such file or directory
debug1: identity file /home/dseomn/
debug1: key_load_public: No such file or directory
debug1: identity file /home/dseomn/
debug1: key_load_public: No such file or directory
debug1: identity file /home/dseomn/
debug1: key_load_public: No such file or directory
debug1: identity file /home/dseomn/
debug1: key_load_public: No such file or directory
debug1: identity file /home/dseomn/
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4p1 Debian-10+deb9u1
debug1: match: OpenSSH_7.4p1 Debian-10+deb9u1 pat OpenSSH* compat 0x04000000
debug1: Authenticating to [redacted]:22 as '[redacted]'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: <email address hidden>
debug1: kex: host key algorithm: rsa-sha2-512
debug1: kex: server->client cipher: <email address hidden> MAC: <implicit> compression: none
debug1: kex: client->server cipher: <email address hidden> MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_
debug1: Server host key: ssh-rsa SHA256:
debug1: Host '[redacted]' is known and matches the RSA host key.
debug1: Found key in /home/dseomn/
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-
debug1: SSH2_MSG_
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: cardno:[redacted]
debug1: Server accepts key: pkalg ssh-rsa blen 535
debug1: Authentication succeeded (publickey).
Authenticated to [redacted] (via proxy).
debug1: channel 0: new [client-session]
debug1: Requesting <email address hidden>
debug1: Entering interactive session.
debug1: pledge: proc
debug1: client_
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending subsystem: sftp
^Cdebug1: channel 0: free: client-session, nchannels 1
debug1: Killed by signal 2.