I solved this issue using help from: https://help.ubuntu.com/community/SSH/OpenSSH/Keys
Encrypted Home Directory was my issue. and it was file permission issue.
Also I needed to run "gpg-agent --daemon --enable-ssh-support" explicitly. Though it was part of yubikey Ubuntu script from here https://developers.yubico.com/PGP/SSH_authentication/
I just ran script again and again and fixed file permissions. Somehow it started working and allowed me to login.
Using Ubuntu 16.04.02. Yubikey 4 nano
I solved this issue using help from: /help.ubuntu. com/community/ SSH/OpenSSH/ Keys
https:/
Encrypted Home Directory was my issue. and it was file permission issue.
Also I needed to run "gpg-agent --daemon --enable- ssh-support" explicitly. Though it was part of yubikey Ubuntu script from here https:/ /developers. yubico. com/PGP/ SSH_authenticat ion/
I just ran script again and again and fixed file permissions. Somehow it started working and allowed me to login.
Using Ubuntu 16.04.02.
Yubikey 4 nano