macOS 10.12.4 ssh-add agent refused operation
После обновления до версии macOS 10.12.4 пропала возможность добавить токен в ssh-agent.
ssh-add -s /usr/local/lib/librtpkcs11ecp.dylib
Enter passphrase for PKCS#11:
Could not add card "/usr/local/lib/librtpkcs11ecp.dylib": agent refused operation
При этом при подключении к серверу по ssh с указанием -I /usr/local/librtpkcs11ecp.dylib или /usr/local/lib/librtpkcs11ecp.dylib - все отлично работает.
Версия библиотеки актуальная с сайта v.1.5.3.0 от 27.03.2017
хотя тут дата от 9 февраля почему то
ls -l /Library/Aktiv\ Co/Rutoken\ ECP/lib/librtpkcs11ecp.dylib
-rwxr-xr-x 1 root wheel 4831424 9 фев 16:52 /Library/Aktiv Co/Rutoken ECP/lib/librtpkcs11ecp.dylib
pcsctest
MUSCLE PC/SC Lite Test Program
Testing SCardEstablishContext : Command successful.
Testing SCardGetStatusChange
Please insert a working reader : Command successful.
Testing SCardListReaders : Command successful.
Reader 01: Aktiv Rutoken ECP
Enter the reader number : 1
Waiting for card insertion
: Command successful.
Testing SCardConnect : Command successful.
Testing SCardStatus : Command successful.
Current Reader Name : Aktiv Rutoken ECP
Current Reader State : 0x54
Current Reader Protocol : 0x1
Current Reader ATR Size : 15 (0xf)
Current Reader ATR Value : 3B 8B 01 52 75 74 6F 6B 65 6E 20 44 53 20 C1
Testing SCardDisconnect : Command successful.
Testing SCardReleaseContext : Command successful.
Testing SCardEstablishContext : Command successful.
Testing SCardGetStatusChange
Please insert a working reader : Command successful.
Testing SCardListReaders : Command successful.
Reader 01: Aktiv Rutoken ECP
Enter the reader number : 1
Waiting for card insertion
: Command successful.
Testing SCardConnect : Command successful.
Testing SCardStatus : Command successful.
Current Reader Name : Aktiv Rutoken ECP
Current Reader State : 0x54
Current Reader Protocol : 0x1
Current Reader ATR Size : 15 (0xf)
Current Reader ATR Value : 3B 8B 01 52 75 74 6F 6B 65 6E 20 44 53 20 C1
Testing SCardDisconnect : Command successful.
Testing SCardReleaseContext : Command successful.
PC/SC Test Completed Successfully !