Tried out ProxyJump as suggested by @JensErat.I configured it like this in ssh config:Host jump-to-serverHostName server.hostnameProxyJump ubuntu@jump.hostnameUser ubuntuBut it does not work, it just hangs during connection.Do I need gnupg installed on the jump server also?I have 2 computers running OSX. home and laptop. I also have a number of servers that I need to access, let's refer to them all as server.On home and laptop I have installed gnupg 2.1.20 and I have a yubikey that works on them both. I can connect to a server using the yubikey over ssh.Servers only have regular ssh, no gnupg.This works great using gnupg and yubikey:home > serverlaptop > serverlaptop > homeI have added the following in .bash_profile on home and laptop to make this work:if [ -f ${HOME}/.gpg-agent-info ]; then  . ${HOME}/.gpg-agent-info  export GPG_AGENT_INFO  export SSH_AUTH_SOCKfiI would also like to do thislaptop > home > serverTo do this I have read that I read I need to open an extra socket so this is .gnupg/gpg-agent.conf on laptop:pinentry-program /usr/local/bin/pinentry-macextra-socket /Users/deadlock/.gnupg/S.gpg-agent.extraenable-ssh-supportwrite-env-fileuse-standard-socketdefault-cache-ttl 600max-cache-ttl 7200allow-preset-passphraseThis is the same on home:pinentry-program /usr/local/bin/pinentry-macenable-ssh-supportwrite-env-fileuse-standard-socketdefault-cache-ttl 600max-cache-ttl 7200gpg-agent is running on both laptop and home; I have made sure ssh-agent is NOT running.I have configured home like this in ~/.ssh/configHost homeHostName 12.34.45.67Port 22User jensForwardAgent noRemoteForward /Users/jens/.gnupg/S.gpg-agent /Users/jens/.gnupg/S.gpg-agent.extraThis does not work. On laptop, ssh-add -l lists my keys, but after I try to ssh home. I cannot ssh further to server. It just hangs or fails with that it could not authenticate.If possible I would also be able to do thislaptop > server > serverbut since server is not running gnupg at all I don't know if it is possible?
GnuPG 2.1.20 ssh agent forwarding with yubikey on OSX fails
ssh;gpg;gpg agent;gnupg;yubikey