How to use Yubikey (openpgp) on another computer?

Please do not double post. The answer can be found here: How can i get public key from Yubikey ?