I am new to using ssh for anything besides machine access. I have access to two different machines which are authenticated by YubiKeys, machine A, machine B. I want to transfer data between machines A and B.
So far I have tried using
user@local_machine:~$ ssh -A machine_A_host_name
and then
user@machine_A:~$ ssh machine_B_host_name
that results in Permission denied.
Some people were able to do it by adding 2-factor key to their ssh identities, but not me. I would love to understand why that might've been the case and some suggestions for a workaround that can work with Yubikey access.
I am on Ubuntu 22.04.1