1. install software
gnupg2 gnupg-agent scdaemon pcscd pcsc-tools libccid
2. make the keys
3. config linux
gpg2 --card-edit
>fetch
>quit
killall ssh-agent gpg-agent
unset GPG_AGENT_INFO SSH_AGENT_PID SSH_AUTH_SOCK
eval $(gpg-agent --daemon --enable-ssh-support)
ssh-add -l
(if you put all the commands to a sh file, then you need to exe it by . or source)