- Ensure
AllowAgentForwarding yes
is set in/etc/ssh/sshd_config
on the machine that will be used as a jump server - on the client machine, run:
eval $(ssh-agent) ssh-add ~/.ssh/my_key ssh --ssh-flag="-A" jump-server
- once connected, ssh normally to the final destination machine.