Git Access using SmartCard PKCS11 token

I am trying to configure the intellij Git Access using SmartCard token which support pkcs11 standards.currently we are using the git from Command line with pkcs11 token using the ssh-agent and ssh-add -s /usr/lib/ commands. for the global configuration, it can work from ~/.ssh/config or /etc/ssh/ssh_config and add the following line to config file

Host *
PKCS11Provider  /usr/lib/
IdentitiesOnly  yes
IdentityFile    /tmp/null

Git is working simply by running the following command

[6/12/2015 3:11:19 AM] Sanaullah:  git clone git@
Cloning into 'ams'...
Enter PIN for 'SmartCard-HSM (UserPIN)':

is there a way we can configure the token in Intellij?


1 comment
Comment actions Permalink

I'm afraid this is not possible:
* the SSH library used in IntelliJ (trilead-ssh) probably doesn't support the SmartCard (although you may try);
* if the native SSH is used, it is not possible to pass the password from IntelliJ to the ssh agent because of (IntelliJ has to be a terminal in this case) <- we plan to fix this, but not very soon.


Please sign in to leave a comment.