I found help from the opensc project.

A change in pkcs11-tool syntax worked, but ssh still fails (not asking
for a password)

```
pkcs11-tool -L -l --module /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so

Available slots:
Slot 0 (0x0): Feitian ePass2003 00 00
  token label        : ePass2003 (User PIN)
  token manufacturer : EnterSafe
  token model        : PKCS#15
  token flags        : login required, rng, token initialized, PIN initialized
  hardware version   : 0.0
  firmware version   : 0.0
  serial num         : xxxxxxxxxxxxxxxx
  pin min/max        : 4/16
Logging in to "ePass2003 (User PIN)".
Please enter User PIN: 

echo $?
0

ssh -I /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so <user>@<remote>
<user>@<remote>: Permission denied (publickey).
```

Tried this

```
ssh-add -s /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so
Enter passphrase for PKCS#11: 
Card added: /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so

ssh -I /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so <user>@<remote>
<user>@<remote>: Permission denied (publickey).
```

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

Title:
  opensc-pkcs11 failing epass2003_pin_cmd after 22.04 upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/opensc/+bug/1972753/+subscriptions


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

Reply via email to